]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/systemd-veritysetup-generator.xml
Add SPDX license identifiers to catalog and po files
[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">
4<!--
5 This file is part of systemd.
6
7 Copyright 2016 Lennart Poettering
8
9 systemd is free software; you can redistribute it and/or modify it
10 under the terms of the GNU Lesser General Public License as published by
11 the Free Software Foundation; either version 2.1 of the License, or
12 (at your option) any later version.
13
14 systemd is distributed in the hope that it will be useful, but
15 WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 Lesser General Public License for more details.
18
19 You should have received a copy of the GNU Lesser General Public License
20 along with systemd; If not, see <http://www.gnu.org/licenses/>.
21-->
22<refentry id="systemd-veritysetup-generator" conditional='HAVE_LIBCRYPTSETUP'>
23
24 <refentryinfo>
25 <title>systemd-veritysetup-generator</title>
26 <productname>systemd</productname>
27
28 <authorgroup>
29 <author>
30 <contrib>Developer</contrib>
31 <firstname>Lennart</firstname>
32 <surname>Poettering</surname>
33 <email>lennart@poettering.net</email>
34 </author>
35 </authorgroup>
36 </refentryinfo>
37
38 <refmeta>
39 <refentrytitle>systemd-veritysetup-generator</refentrytitle>
40 <manvolnum>8</manvolnum>
41 </refmeta>
42
43 <refnamediv>
44 <refname>systemd-veritysetup-generator</refname>
45 <refpurpose>Unit generator for integrity protected block devices</refpurpose>
46 </refnamediv>
47
48 <refsynopsisdiv>
49 <para><filename>/usr/lib/systemd/system-generators/systemd-veritysetup-generator</filename></para>
50 </refsynopsisdiv>
51
52 <refsect1>
53 <title>Description</title>
54
55 <para><filename>systemd-veritysetup-generator</filename> is a generator that translates kernel command line options
56 configuring integrity protected block devices (verity) into native systemd units early at boot and when
57 configuration of the system manager is reloaded. This will create
58 <citerefentry><refentrytitle>systemd-veritysetup@.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>
59 units as necessary.</para>
60
61 <para>Currently, only a single verity device may be se up with this generator, backing the root file system of the
62 OS.</para>
63
64 <para><filename>systemd-veritysetup-generator</filename> implements
65 <citerefentry><refentrytitle>systemd.generator</refentrytitle><manvolnum>7</manvolnum></citerefentry>.</para>
66 </refsect1>
67
68 <refsect1>
69 <title>Kernel Command Line</title>
70
71 <para><filename>systemd-veritysetup-generator</filename>
72 understands the following kernel command line parameters:</para>
73
74 <variablelist class='kernel-commandline-options'>
75 <varlistentry>
76 <term><varname>systemd.verity=</varname></term>
77 <term><varname>rd.systemd.verity=</varname></term>
78
79 <listitem><para>Takes a boolean argument. Defaults to <literal>yes</literal>. If <literal>no</literal>,
80 disables the generator entirely. <varname>rd.systemd.verity=</varname> is honored only by the initial RAM disk
81 (initrd) while <varname>systemd.verity=</varname> is honored by both the host system and the
82 initrd. </para></listitem>
83 </varlistentry>
84
85 <varlistentry>
86 <term><varname>roothash=</varname></term>
87
88 <listitem><para>Takes a root hash value for the root file system. Expects a hash value formatted in hexadecimal
89 characters, of the appropriate length (i.e. most likely 256 bit/64 characters, or longer). If not specified via
90 <varname>systemd.verity_root_data=</varname> and <varname>systemd.verity_root_hash=</varname>, the hash and
91 data devices to use are automatically derived from the specified hash value. Specifically, the data partition
92 device is looked for under a GPT partition UUID derived from the first 128bit of the root hash, the hash
93 partition device is looked for under a GPT partition UUID derived from the last 128bit of the root hash. Hence
94 it is usually sufficient to specify the root hash to boot from an integrity protected root file system, as
95 device paths are automatically determined from it — as long as the partition table is properly set up.</para>
96 </listitem>
97 </varlistentry>
98
99 <varlistentry>
100 <term><varname>systemd.verity_root_data=</varname></term>
101 <term><varname>systemd.verity_root_hash=</varname></term>
102
103 <listitem><para>These two settings take block device paths as arguments, and may be use to explicitly configure
104 the data partition and hash partition to use for setting up the integrity protection for the root file
105 system. If not specified, these paths are automatically derived from the <varname>roothash=</varname> argument
106 (see above).</para></listitem>
107 </varlistentry>
108
109 </variablelist>
110 </refsect1>
111
112 <refsect1>
113 <title>See Also</title>
114 <para>
115 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
116 <citerefentry><refentrytitle>systemd-veritysetup@.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
117 <citerefentry project='die-net'><refentrytitle>veritysetup</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
118 <citerefentry><refentrytitle>systemd-fstab-generator</refentrytitle><manvolnum>8</manvolnum></citerefentry>
119 </para>
120 </refsect1>
121
122</refentry>