veritysetup-generator: use generic veritysetup writers at one more place
authorLennart Poettering <lennart@poettering.net>
Thu, 1 Jun 2023 15:20:59 +0000 (17:20 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 1 Jun 2023 16:49:43 +0000 (18:49 +0200)
commit953006dcb0a37a57aed0e762ff6289700e8689e8
tree3c365ade2647534fb228f4a53d45d7cafa7da916
parent6747d9a13fb9554e720cf352dd407133fb1a79cf
veritysetup-generator: use generic veritysetup writers at one more place

Let's use the common generator_write_veritysetup_unit_section(),
ggenerator_write_veritysetup_service_section(), generator_add_symlink()
implementation we already have at one more place.

This mostly generates the same unit, but for the first time hooks up
blockdev@dev-mapper-*.device for the device, which means things like
growfs on usr+root volumes will actually work now. (I mean, growfs
won#t, because verity devices are immutable after all, but things *like*
it that want to run between the device popping up and being mounted.)
src/veritysetup/veritysetup-generator.c