summaryrefslogtreecommitdiff
path: root/units/remote-veritysetup.target
diff options
context:
space:
mode:
authorGaël PORTAY <gael.portay@collabora.com>2020-11-14 09:21:39 -0500
committerGaël PORTAY <gael.portay@collabora.com>2021-01-15 11:06:11 -0500
commit08b04ec7e72b7327b4803809732b1b8fce8dd069 (patch)
tree178f69b3a8fcd6b85604ac1f92fe2add48be1fed /units/remote-veritysetup.target
parent0141102f104cbb2e469b0e8b946681887e2495f2 (diff)
downloadsystemd-08b04ec7e72b7327b4803809732b1b8fce8dd069.tar.gz
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.
Diffstat (limited to 'units/remote-veritysetup.target')
-rw-r--r--units/remote-veritysetup.target18
1 files changed, 18 insertions, 0 deletions
diff --git a/units/remote-veritysetup.target b/units/remote-veritysetup.target
new file mode 100644
index 0000000000..bd9f71acef
--- /dev/null
+++ b/units/remote-veritysetup.target
@@ -0,0 +1,18 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+#
+# This file is part of systemd.
+#
+# systemd is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; either version 2.1 of the License, or
+# (at your option) any later version.
+
+[Unit]
+Description=Remote Verity Integrity Protected Volumes
+Documentation=man:systemd.special(7)
+After=remote-fs-pre.target veritysetup-pre.target
+DefaultDependencies=no
+Conflicts=shutdown.target
+
+[Install]
+WantedBy=multi-user.target