diff --git a/man/systemd-veritysetup-generator.xml b/man/systemd-veritysetup-generator.xml index f583468229..ca133eb506 100644 --- a/man/systemd-veritysetup-generator.xml +++ b/man/systemd-veritysetup-generator.xml @@ -54,12 +54,24 @@ Takes a boolean argument. Defaults to yes. If no, disables the generator entirely. rd.systemd.verity= is - honored only by the initrd while systemd.verity= is honored by both the host - system and the initrd. + honored only in the initrd while systemd.verity= is honored by both the main + system and in the initrd. + + veritytab= + rd.veritytab= + + Takes a boolean argument. Defaults to yes. If + no, causes the generator to ignore any devices configured in + /etc/veritytab. rd.veritytab= is honored only in the initrd + while veritytab= is honored by both the main system and in the initrd. + + + + roothash= @@ -104,7 +116,7 @@ , , , and . See - veritysetup8 for more + veritysetup8 for more details. @@ -129,7 +141,7 @@ systemd1 systemd-veritysetup@.service8 - veritysetup8 + veritysetup8 systemd-fstab-generator8 diff --git a/man/systemd-veritysetup@.service.xml b/man/systemd-veritysetup@.service.xml index c715dac422..a976a062de 100644 --- a/man/systemd-veritysetup@.service.xml +++ b/man/systemd-veritysetup@.service.xml @@ -97,7 +97,7 @@ systemd1 systemd-veritysetup-generator8 - veritysetup8 + veritysetup8 diff --git a/man/veritytab.xml b/man/veritytab.xml index 6bd09604b6..19b26e9b37 100644 --- a/man/veritytab.xml +++ b/man/veritytab.xml @@ -319,7 +319,7 @@ data /etc/data /etc/hash a5ee4b42f70ae1f46a08a7c92c2e0a20672ad2f514792730f5d49d7 systemd-veritysetup@.service8 systemd-veritysetup-generator8 fstab5 - veritysetup8 + veritysetup8 diff --git a/src/veritysetup/veritysetup-generator.c b/src/veritysetup/veritysetup-generator.c index 95ce82b7c6..8e35946ca6 100644 --- a/src/veritysetup/veritysetup-generator.c +++ b/src/veritysetup/veritysetup-generator.c @@ -453,7 +453,6 @@ static int add_veritytab_devices(void) { for (;;) { _cleanup_free_ char *line = NULL, *name = NULL, *data_device = NULL, *hash_device = NULL, *roothash = NULL, *options = NULL; - char *data_uuid, *hash_uuid; r = read_stripped_line(f, LONG_LINE_MAX, &line); if (r < 0) @@ -472,14 +471,6 @@ static int add_veritytab_devices(void) { continue; } - data_uuid = startswith(data_device, "UUID="); - if (!data_uuid) - data_uuid = path_startswith(data_device, "/dev/disk/by-uuid/"); - - hash_uuid = startswith(hash_device, "UUID="); - if (!hash_uuid) - hash_uuid = path_startswith(hash_device, "/dev/disk/by-uuid/"); - r = create_veritytab_device( name, data_device,