mirror of
https://github.com/systemd/systemd
synced 2026-03-24 15:55:00 +01:00
Compare commits
No commits in common. "42a45446bbf2657c50595d88733cd6f089a192f2" and "788733428d019791ab9d780b4778a472794b3748" have entirely different histories.
42a45446bb
...
788733428d
@ -36,53 +36,6 @@
|
|||||||
<para>At early boot and when the system manager configuration is reloaded kernel command line configuration for
|
<para>At early boot and when the system manager configuration is reloaded kernel command line configuration for
|
||||||
integrity protected block devices is translated into <filename>systemd-veritysetup@.service</filename> units by
|
integrity protected block devices is translated into <filename>systemd-veritysetup@.service</filename> units by
|
||||||
<citerefentry><refentrytitle>systemd-veritysetup-generator</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para>
|
<citerefentry><refentrytitle>systemd-veritysetup-generator</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para>
|
||||||
|
|
||||||
<para><filename>systemd-veritysetup@.service</filename> calls <command>systemd-veritysetup</command>.</para>
|
|
||||||
</refsect1>
|
|
||||||
|
|
||||||
<refsect1>
|
|
||||||
<title>Commands</title>
|
|
||||||
|
|
||||||
<para>The following commands are understood by <command>systemd-veritysetup</command>:</para>
|
|
||||||
|
|
||||||
<variablelist>
|
|
||||||
<varlistentry>
|
|
||||||
<term>
|
|
||||||
<option>attach</option>
|
|
||||||
<replaceable>volume</replaceable>
|
|
||||||
<replaceable>datadevice</replaceable>
|
|
||||||
<replaceable>hashdevice</replaceable>
|
|
||||||
<replaceable>roothash</replaceable>
|
|
||||||
[<replaceable>option</replaceable>...]
|
|
||||||
</term>
|
|
||||||
|
|
||||||
<listitem><para>Create a block device <replaceable>volume</replaceable> using
|
|
||||||
<replaceable>datadevice</replaceable> and <replaceable>hashdevice</replaceable> as the backing
|
|
||||||
devices. <replaceable>roothash</replaceable> forms the root of the tree of hashes stored on
|
|
||||||
<replaceable>hashdevice</replaceable>. See
|
|
||||||
<ulink url="https://www.kernel.org/doc/html/latest/admin-guide/device-mapper/verity.html">
|
|
||||||
Kernel dm-verity</ulink> documentation for details.
|
|
||||||
</para></listitem>
|
|
||||||
</varlistentry>
|
|
||||||
|
|
||||||
<varlistentry>
|
|
||||||
<term>
|
|
||||||
<option>detach</option>
|
|
||||||
<replaceable>volume</replaceable>
|
|
||||||
</term>
|
|
||||||
|
|
||||||
<listitem><para>Detach (destroy) the block device
|
|
||||||
<replaceable>volume</replaceable>.</para></listitem>
|
|
||||||
</varlistentry>
|
|
||||||
|
|
||||||
<varlistentry>
|
|
||||||
<term>
|
|
||||||
<option>help</option>
|
|
||||||
</term>
|
|
||||||
|
|
||||||
<listitem><para>Print short information about command syntax.</para></listitem>
|
|
||||||
</varlistentry>
|
|
||||||
</variablelist>
|
|
||||||
</refsect1>
|
</refsect1>
|
||||||
|
|
||||||
<refsect1>
|
<refsect1>
|
||||||
|
|||||||
@ -30,7 +30,7 @@ static int help(void) {
|
|||||||
|
|
||||||
printf("%s attach VOLUME DATADEVICE HASHDEVICE ROOTHASH [OPTIONS]\n"
|
printf("%s attach VOLUME DATADEVICE HASHDEVICE ROOTHASH [OPTIONS]\n"
|
||||||
"%s detach VOLUME\n\n"
|
"%s detach VOLUME\n\n"
|
||||||
"Attach or detach an integrity protected block device.\n"
|
"Attaches or detaches an integrity protected block device.\n"
|
||||||
"\nSee the %s for details.\n",
|
"\nSee the %s for details.\n",
|
||||||
program_invocation_short_name,
|
program_invocation_short_name,
|
||||||
program_invocation_short_name,
|
program_invocation_short_name,
|
||||||
@ -130,10 +130,7 @@ static int run(int argc, char *argv[]) {
|
|||||||
_cleanup_(crypt_freep) struct crypt_device *cd = NULL;
|
_cleanup_(crypt_freep) struct crypt_device *cd = NULL;
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
if (argc <= 1 ||
|
if (argc <= 1)
|
||||||
strv_contains(strv_skip(argv, 1), "--help") ||
|
|
||||||
strv_contains(strv_skip(argv, 1), "-h") ||
|
|
||||||
streq(argv[1], "help"))
|
|
||||||
return help();
|
return help();
|
||||||
|
|
||||||
if (argc < 3)
|
if (argc < 3)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user