From 1a06ce16b20c642fba7aa1e2c4ea0ad71bd3605b Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 8 Nov 2022 17:36:46 +0100 Subject: [PATCH] man: document the new --with switch of systemd-dissect --- man/systemd-dissect.xml | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/man/systemd-dissect.xml b/man/systemd-dissect.xml index 955909ff914..f857ecacc7c 100644 --- a/man/systemd-dissect.xml +++ b/man/systemd-dissect.xml @@ -34,6 +34,9 @@ systemd-dissect OPTIONS IMAGE + + systemd-dissect OPTIONS IMAGE COMMAND + systemd-dissect OPTIONS IMAGE PATH TARGET @@ -160,6 +163,19 @@ standard output. + + + + Runs the specified command with the specified OS image mounted. This will mount the + image to a temporary directory, switch the current working directory to it, and invoke the specified + command line as child process. Once the process ends it will unmount the image again, and remove the + temporary directory. If no command is specified a shell is invoked. The image is mounted writable, + use to switch to read-only operation. The invoked process will have the + $SYSTEMD_DISSECT_ROOT environment variable set, containing the absolute path name + of the temporary mount point, i.e. the same directory that is set as the current working + directory. + + @@ -294,14 +310,24 @@ - Exit status - On success, 0 is returned, a non-zero failure code - otherwise. + On success, 0 is returned, a non-zero failure code otherwise. If the + command is used the exit status of the invoked command is propagated. + + + + + Examples + + + Generate a tarball from an OS disk image + + $ systemd-dissect --with foo.raw tar cz . > foo.tar.gz + -- 2.47.3