Skip to content

Commit d53285d

Browse files
committed
man: describe veritysetup command syntax
It makes it easier to diagnose what the generated units actually do.
1 parent 5d5e43c commit d53285d

File tree

2 files changed

+48
-1
lines changed

2 files changed

+48
-1
lines changed

man/systemd-veritysetup@.service.xml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,53 @@
3636
<para>At early boot and when the system manager configuration is reloaded kernel command line configuration for
3737
integrity protected block devices is translated into <filename>systemd-veritysetup@.service</filename> units by
3838
<citerefentry><refentrytitle>systemd-veritysetup-generator</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para>
39+
40+
<para><filename>systemd-veritysetup@.service</filename> calls <command>systemd-veritysetup</command>.</para>
41+
</refsect1>
42+
43+
<refsect1>
44+
<title>Commands</title>
45+
46+
<para>The following commands are understood by <command>systemd-veritysetup</command>:</para>
47+
48+
<variablelist>
49+
<varlistentry>
50+
<term>
51+
<option>attach</option>
52+
<replaceable>volume</replaceable>
53+
<replaceable>datadevice</replaceable>
54+
<replaceable>hashdevice</replaceable>
55+
<replaceable>roothash</replaceable>
56+
[<replaceable>option</replaceable>...]
57+
</term>
58+
59+
<listitem><para>Create a block device <replaceable>volume</replaceable> using
60+
<replaceable>datadevice</replaceable> and <replaceable>hashdevice</replaceable> as the backing
61+
devices. <replaceable>roothash</replaceable> forms the root of the tree of hashes stored on
62+
<replaceable>hashdevice</replaceable>. See
63+
<ulink url="https://www.kernel.org/doc/html/latest/admin-guide/device-mapper/verity.html">
64+
Kernel dm-verity</ulink> documentation for details.
65+
</para></listitem>
66+
</varlistentry>
67+
68+
<varlistentry>
69+
<term>
70+
<option>detach</option>
71+
<replaceable>volume</replaceable>
72+
</term>
73+
74+
<listitem><para>Detach (destroy) the block device
75+
<replaceable>volume</replaceable>.</para></listitem>
76+
</varlistentry>
77+
78+
<varlistentry>
79+
<term>
80+
<option>help</option>
81+
</term>
82+
83+
<listitem><para>Print short information about command syntax.</para></listitem>
84+
</varlistentry>
85+
</variablelist>
3986
</refsect1>
4087

4188
<refsect1>

src/veritysetup/veritysetup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ static int help(void) {
3030

3131
printf("%s attach VOLUME DATADEVICE HASHDEVICE ROOTHASH [OPTIONS]\n"
3232
"%s detach VOLUME\n\n"
33-
"Attaches or detaches an integrity protected block device.\n"
33+
"Attach or detach an integrity protected block device.\n"
3434
"\nSee the %s for details.\n",
3535
program_invocation_short_name,
3636
program_invocation_short_name,

0 commit comments

Comments
 (0)