NAME | SYNOPSIS | DESCRIPTION | KERNEL COMMAND LINE | SEE ALSO | COLOPHON |
|
|
SYSTEMD...ENERATOR(8) systemd-veritysetup-generatorSYSTEMD...ENERATOR(8)
systemd-veritysetup-generator - Unit generator for verity protected block devices
/usr/lib/systemd/system-generators/systemd-veritysetup-generator
systemd-veritysetup-generator is a generator that translates
kernel command line options configuring verity protected block
devices into native systemd units early at boot and when
configuration of the system manager is reloaded. This will create
[email protected](8) units as necessary.
Currently, only two verity devices may be set up with this
generator, backing the root and /usr file systems of the OS.
systemd-veritysetup-generator implements systemd.generator(7).
systemd-veritysetup-generator understands the following kernel command line parameters: systemd.verity=, rd.systemd.verity= 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. Added in version 233. roothash= Takes a root hash value for the root file system. Expects a hash value formatted in hexadecimal characters of the appropriate length (i.e. most likely 256 bit/64 characters, or longer). If not specified via systemd.verity_root_data= and systemd.verity_root_hash=, the hash and data devices to use are automatically derived from the specified hash value. Specifically, the data partition device is looked for under a GPT partition UUID derived from the first 128-bit of the root hash, the hash partition device is looked for under a GPT partition UUID derived from the last 128-bit of the root hash. Hence it is usually sufficient to specify the root hash to boot from a verity protected root file system, as device paths are automatically determined from it — as long as the partition table is properly set up. Added in version 233. systemd.verity_root_data=, systemd.verity_root_hash= These two settings take block device paths as arguments and may be used to explicitly configure the data partition and hash partition to use for setting up the verity protection for the root file system. If not specified, these paths are automatically derived from the roothash= argument (see above). Added in version 233. systemd.verity_root_options= Takes a comma-separated list of dm-verity options. Expects the following options superblock=BOOLEAN, format=NUMBER, data-block-size=BYTES, hash-block-size=BYTES, data-blocks=BLOCKS, hash-offset=BYTES, salt=HEX, uuid=UUID, ignore-corruption, restart-on-corruption, ignore-zero-blocks, check-at-most-once, panic-on-corruption, hash=HASH, fec-device=PATH, fec-offset=BYTES, fec-roots=NUM and root-hash-signature=PATH|base64:HEX. See veritysetup(8) for more details. Added in version 248. usrhash=, systemd.verity_usr_data=, systemd.verity_usr_hash=, systemd.verity_usr_options= Equivalent to their counterparts for the root file system as described above, but apply to the /usr/ file system instead. Added in version 250.
systemd(1), [email protected](8), veritysetup(8),
systemd-fstab-generator(8)
This page is part of the systemd (systemd system and service
manager) project. Information about the project can be found at
⟨http://www.freedesktop.org/wiki/Software/systemd⟩. If you have
a bug report for this manual page, see
⟨http://www.freedesktop.org/wiki/Software/systemd/#bugreports⟩.
This page was obtained from the project's upstream Git repository
⟨https://github.com/systemd/systemd.git⟩ on 2024-06-14. (At that
time, the date of the most recent commit that was found in the
repository was 2024-06-13.) If you discover any rendering
problems in this HTML version of the page, or you believe there
is a better or more up-to-date source for the page, or you have
corrections or improvements to the information in this COLOPHON
(which is not part of the original manual page), send a mail to
[email protected]
systemd 257~devel SYSTEMD...ENERATOR(8)
Pages that refer to this page: veritytab(5), kernel-command-line(7), systemd.directives(7), systemd.index(7), systemd-fstab-generator(8), [email protected](8)