]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/systemd-veritysetup-generator.xml
man: standarize on one-line license header
[thirdparty/systemd.git] / man / systemd-veritysetup-generator.xml
CommitLineData
2f3dfc6f
LP
1<?xml version="1.0"?>
2<!--*-nxml-*-->
3<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
0307f791 4<!-- SPDX-License-Identifier: LGPL-2.1+ -->
2f3dfc6f
LP
5<refentry id="systemd-veritysetup-generator" conditional='HAVE_LIBCRYPTSETUP'>
6
7 <refentryinfo>
8 <title>systemd-veritysetup-generator</title>
9 <productname>systemd</productname>
2f3dfc6f
LP
10 </refentryinfo>
11
12 <refmeta>
13 <refentrytitle>systemd-veritysetup-generator</refentrytitle>
14 <manvolnum>8</manvolnum>
15 </refmeta>
16
17 <refnamediv>
18 <refname>systemd-veritysetup-generator</refname>
19 <refpurpose>Unit generator for integrity protected block devices</refpurpose>
20 </refnamediv>
21
22 <refsynopsisdiv>
23 <para><filename>/usr/lib/systemd/system-generators/systemd-veritysetup-generator</filename></para>
24 </refsynopsisdiv>
25
26 <refsect1>
27 <title>Description</title>
28
29 <para><filename>systemd-veritysetup-generator</filename> is a generator that translates kernel command line options
30 configuring integrity protected block devices (verity) into native systemd units early at boot and when
31 configuration of the system manager is reloaded. This will create
32 <citerefentry><refentrytitle>systemd-veritysetup@.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>
33 units as necessary.</para>
34
35 <para>Currently, only a single verity device may be se up with this generator, backing the root file system of the
36 OS.</para>
37
38 <para><filename>systemd-veritysetup-generator</filename> implements
39 <citerefentry><refentrytitle>systemd.generator</refentrytitle><manvolnum>7</manvolnum></citerefentry>.</para>
40 </refsect1>
41
42 <refsect1>
43 <title>Kernel Command Line</title>
44
45 <para><filename>systemd-veritysetup-generator</filename>
46 understands the following kernel command line parameters:</para>
47
48 <variablelist class='kernel-commandline-options'>
49 <varlistentry>
50 <term><varname>systemd.verity=</varname></term>
51 <term><varname>rd.systemd.verity=</varname></term>
52
53 <listitem><para>Takes a boolean argument. Defaults to <literal>yes</literal>. If <literal>no</literal>,
54 disables the generator entirely. <varname>rd.systemd.verity=</varname> is honored only by the initial RAM disk
55 (initrd) while <varname>systemd.verity=</varname> is honored by both the host system and the
56 initrd. </para></listitem>
57 </varlistentry>
58
59 <varlistentry>
60 <term><varname>roothash=</varname></term>
61
62 <listitem><para>Takes a root hash value for the root file system. Expects a hash value formatted in hexadecimal
63 characters, of the appropriate length (i.e. most likely 256 bit/64 characters, or longer). If not specified via
64 <varname>systemd.verity_root_data=</varname> and <varname>systemd.verity_root_hash=</varname>, the hash and
65 data devices to use are automatically derived from the specified hash value. Specifically, the data partition
66 device is looked for under a GPT partition UUID derived from the first 128bit of the root hash, the hash
67 partition device is looked for under a GPT partition UUID derived from the last 128bit of the root hash. Hence
68 it is usually sufficient to specify the root hash to boot from an integrity protected root file system, as
69 device paths are automatically determined from it — as long as the partition table is properly set up.</para>
70 </listitem>
71 </varlistentry>
72
73 <varlistentry>
74 <term><varname>systemd.verity_root_data=</varname></term>
75 <term><varname>systemd.verity_root_hash=</varname></term>
76
77 <listitem><para>These two settings take block device paths as arguments, and may be use to explicitly configure
78 the data partition and hash partition to use for setting up the integrity protection for the root file
79 system. If not specified, these paths are automatically derived from the <varname>roothash=</varname> argument
80 (see above).</para></listitem>
81 </varlistentry>
82
83 </variablelist>
84 </refsect1>
85
86 <refsect1>
87 <title>See Also</title>
88 <para>
89 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
90 <citerefentry><refentrytitle>systemd-veritysetup@.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
91 <citerefentry project='die-net'><refentrytitle>veritysetup</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
92 <citerefentry><refentrytitle>systemd-fstab-generator</refentrytitle><manvolnum>8</manvolnum></citerefentry>
93 </para>
94 </refsect1>
95
96</refentry>