]> git.ipfire.org Git - thirdparty/systemd.git/commit - man/systemd.special.xml
veritysetup-generator: add support for veritytab
authorGaël PORTAY <gael.portay@collabora.com>
Sat, 14 Nov 2020 14:21:39 +0000 (09:21 -0500)
committerGaël PORTAY <gael.portay@collabora.com>
Fri, 15 Jan 2021 16:06:11 +0000 (11:06 -0500)
commit08b04ec7e72b7327b4803809732b1b8fce8dd069
tree178f69b3a8fcd6b85604ac1f92fe2add48be1fed
parent0141102f104cbb2e469b0e8b946681887e2495f2
veritysetup-generator: add support for veritytab

This adds the support for veritytab.

The veritytab file contains at most five fields, the first four are
mandatory, the last one is optional:
 - The first field contains the name of the resulting verity volume; its
   block device is set up /dev/mapper/</filename>.
 - The second field contains a path to the underlying block data device,
   or a specification of a block device via UUID= followed by the UUID.
 - The third field contains a path to the underlying block hash device,
   or a specification of a block device via UUID= followed by the UUID.
 - The fourth field is the roothash in hexadecimal.
 - The fifth field, if present, is a comma-delimited list of options.
   The following options are recognized only: ignore-corruption,
   restart-on-corruption, panic-on-corruption, ignore-zero-blocks,
   check-at-most-once and root-hash-signature. The others options will
   be implemented later.

Also, this adds support for the new kernel verity command line boolean
option "veritytab" which enables the read for veritytab, and the new
environment variable SYSTEMD_VERITYTAB which sets the path to the file
veritytab to read.
16 files changed:
docs/ENVIRONMENT.md
man/bootup.xml
man/directives-template.xml
man/kernel-command-line.xml
man/rules/meson.build
man/systemd.special.xml
man/veritytab.xml [new file with mode: 0644]
meson.build
src/shared/generator.c
src/shared/generator.h
src/veritysetup/veritysetup-generator.c
src/veritysetup/veritysetup.c
units/meson.build
units/remote-veritysetup.target [new file with mode: 0644]
units/veritysetup-pre.target [new file with mode: 0644]
units/veritysetup.target [new file with mode: 0644]