diff options
author | Lennart Poettering <lennart@poettering.net> | 2022-12-02 15:00:44 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-04-05 20:49:06 +0200 |
commit | dee4a6237ab5913a6cac3f2afa5ba6ae1f35080a (patch) | |
tree | 0ef93951777027b33d8f0ab4b426c7de76f63402 /man | |
parent | 93a8a85be3585c6f011853dad2888e5d0d3159d6 (diff) | |
download | systemd-dee4a6237ab5913a6cac3f2afa5ba6ae1f35080a.tar.gz |
dissect: add new --validate command
This allows unprivileged validation of DDIs. Only superficial structure,
i.e. not mounting or so. This becomes particularly handy in the
integration tests, and to validate image policies.
Diffstat (limited to 'man')
-rw-r--r-- | man/systemd-dissect.xml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/man/systemd-dissect.xml b/man/systemd-dissect.xml index 06c57a22ec..f388cde3c6 100644 --- a/man/systemd-dissect.xml +++ b/man/systemd-dissect.xml @@ -281,6 +281,20 @@ on.</para></listitem> </varlistentry> + <varlistentry> + <term><option>--validate</option></term> + + <listitem><para>Validates the partition arrangement of a disk image (DDI), and ensures it matches the + image policy specified via <option>--image-policy=</option>, if one is specified. This parses the + partition table and probes the file systems in the image, but does not attempt to mount them (nor to + set up disk encryption/authentication via LUKS/Verity). It does this taking the configured image + dissection policy into account. Since this operation does not mount file systems, this command – + unlike all other commands implemented by this tool – requires no privileges other than the ability to + access the specified file. Prints "OK" and returns zero if the image appears to be in order and + matches the specified image dissection policy. Otherwise prints an error message and returns + non-zero.</para></listitem> + </varlistentry> + <xi:include href="standard-options.xml" xpointer="help" /> <xi:include href="standard-options.xml" xpointer="version" /> </variablelist> |