diff options
Diffstat (limited to 'upstream/opensuse-tumbleweed/man1/systemd-dissect.1')
-rw-r--r-- | upstream/opensuse-tumbleweed/man1/systemd-dissect.1 | 60 |
1 files changed, 58 insertions, 2 deletions
diff --git a/upstream/opensuse-tumbleweed/man1/systemd-dissect.1 b/upstream/opensuse-tumbleweed/man1/systemd-dissect.1 index 9606c8d3..994c72a0 100644 --- a/upstream/opensuse-tumbleweed/man1/systemd-dissect.1 +++ b/upstream/opensuse-tumbleweed/man1/systemd-dissect.1 @@ -1,5 +1,5 @@ '\" t -.TH "SYSTEMD\-DISSECT" "1" "" "systemd 254" "systemd-dissect" +.TH "SYSTEMD\-DISSECT" "1" "" "systemd 255" "systemd-dissect" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- @@ -185,12 +185,16 @@ Note that this functionality is also available in via a command such as \fBmount \-t ddi myimage\&.raw targetdir/\fR, as well as in \fBfstab\fR(5)\&. For details, see below\&. +.sp +Added in version 247\&. .RE .PP \fB\-M\fR .RS 4 This is a shortcut for \fB\-\-mount \-\-mkdir\fR\&. +.sp +Added in version 247\&. .RE .PP \fB\-\-umount\fR, \fB\-u\fR @@ -198,18 +202,24 @@ This is a shortcut for Unmount an OS image from the specified directory\&. This command expects one argument: a directory where an OS image was mounted\&. .sp All mounted partitions will be recursively unmounted, and the underlying loop device will be removed, along with all its partition sub\-devices\&. +.sp +Added in version 252\&. .RE .PP \fB\-U\fR .RS 4 This is a shortcut for \fB\-\-umount \-\-rmdir\fR\&. +.sp +Added in version 252\&. .RE .PP \fB\-\-attach\fR .RS 4 Attach the specified disk image to an automatically allocated loopback block device, and print the path to the loopback block device to standard output\&. This is similar to an invocation of \fBlosetup \-\-find \-\-show\fR, but will validate the image as DDI before attaching, and derive the correct sector size to use automatically\&. Moreover, it ensures the per\-partition block devices are created before returning\&. Takes a path to a disk image file\&. +.sp +Added in version 254\&. .RE .PP \fB\-\-detach\fR @@ -217,11 +227,15 @@ Attach the specified disk image to an automatically allocated loopback block dev Detach the specified disk image from a loopback block device\&. This undoes the effect of \fB\-\-attach\fR above\&. This expects either a path to a loopback block device as an argument, or the path to the backing image file\&. In the latter case it will automatically determine the right device to detach\&. +.sp +Added in version 254\&. .RE .PP \fB\-\-list\fR, \fB\-l\fR .RS 4 Prints the paths of all the files and directories in the specified OS image or directory to standard output\&. +.sp +Added in version 253\&. .RE .PP \fB\-\-mtree\fR @@ -233,6 +247,8 @@ compatible file manifest of the specified disk image or directory\&. This is use file flags, \fBbtrfs\fR(5) subvolume information, and various other file metadata\&. File content information is shown via a SHA256 digest\&. Additional fields might be added in future\&. Note that inode information such as link counts, inode numbers and timestamps is excluded from the output on purpose, as it typically complicates reproducibility\&. +.sp +Added in version 253\&. .RE .PP \fB\-\-with\fR @@ -241,12 +257,18 @@ Runs the specified command with the specified OS image mounted\&. This will moun \fB\-\-read\-only\fR to switch to read\-only operation\&. The invoked process will have the \fI$SYSTEMD_DISSECT_ROOT\fR -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\&. +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\&. It will also have the +\fI$SYSTEMD_DISSECT_DEVICE\fR +environment variable set, containing the absolute path name of the loop device the image was attached to\&. +.sp +Added in version 253\&. .RE .PP \fB\-\-copy\-from\fR, \fB\-x\fR .RS 4 Copies a file or directory from the specified OS image or directory into the specified location on the host file system\&. Expects three arguments: a path to an image file or directory, a source path (relative to the image\*(Aqs root directory) and a destination path (relative to the current working directory, or an absolute path, both outside of the image)\&. If the destination path is omitted or specified as dash ("\-"), the specified file is written to standard output\&. If the source path in the image file system refers to a regular file it is copied to the destination path\&. In this case access mode, extended attributes and timestamps are copied as well, but file ownership is not\&. If the source path in the image refers to a directory, it is copied to the destination path, recursively with all containing files and directories\&. In this case the file ownership is copied too\&. +.sp +Added in version 247\&. .RE .PP \fB\-\-copy\-to\fR, \fB\-a\fR @@ -256,6 +278,8 @@ Copies a file or directory from the specified location in the host file system i As with \fB\-\-mount\fR file system checks are implicitly run before the copy operation begins\&. +.sp +Added in version 247\&. .RE .PP \fB\-\-discover\fR @@ -268,12 +292,16 @@ Show a list of DDIs in well\-known directories\&. This will show machine, portab /var/lib/portables/, /var/lib/extensions/ and so on\&. +.sp +Added in version 253\&. .RE .PP \fB\-\-validate\fR .RS 4 Validates the partition arrangement of a disk image (DDI), and ensures it matches the image policy specified via \fB\-\-image\-policy=\fR, 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 \(en unlike all other commands implemented by this tool \(en 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\&. +.sp +Added in version 254\&. .RE .PP \fB\-h\fR, \fB\-\-help\fR @@ -294,6 +322,8 @@ The following options are understood: Operate in read\-only mode\&. By default \fB\-\-mount\fR will establish writable mount points\&. If this option is specified they are established in read\-only mode instead\&. +.sp +Added in version 247\&. .RE .PP \fB\-\-fsck=no\fR @@ -305,6 +335,8 @@ or \fBfsck\fR(8) command, in automatic fixing mode\&. This behavior may be switched off using \fB\-\-fsck=no\fR\&. +.sp +Added in version 247\&. .RE .PP \fB\-\-growfs=no\fR @@ -383,6 +415,8 @@ The \fB\-\-growfs=no\fR option is not passed\&. .RE +.sp +Added in version 249\&. .RE .PP \fB\-\-mkdir\fR @@ -390,6 +424,8 @@ option is not passed\&. If combined with \fB\-\-mount\fR the directory to mount the OS image to is created if it is missing\&. Note that the directory is not automatically removed when the disk image is unmounted again\&. +.sp +Added in version 247\&. .RE .PP \fB\-\-rmdir\fR @@ -397,6 +433,8 @@ the directory to mount the OS image to is created if it is missing\&. Note that If combined with \fB\-\-umount\fR the specified directory where the OS image is mounted is removed after unmounting the OS image\&. +.sp +Added in version 252\&. .RE .PP \fB\-\-discard=\fR @@ -414,11 +452,15 @@ discarding is enabled if operating on a regular file\&. If discarding is enabled even on encrypted file systems\&. If "all" discarding is unconditionally enabled\&. +.sp +Added in version 247\&. .RE .PP \fB\-\-in\-memory\fR .RS 4 If specified an in\-memory copy of the specified disk image is used\&. This may be used to operate with write\-access on a (possibly read\-only) image, without actually modifying the original file\&. This may also be used in order to operate on a disk image without keeping the originating file system busy, in order to allow it to be unmounted\&. +.sp +Added in version 253\&. .RE .PP \fB\-\-root\-hash=\fR, \fB\-\-root\-hash\-sig=\fR, \fB\-\-verity\-data=\fR @@ -431,6 +473,8 @@ specifies the path to a file containing a PKCS#7 signature for the hash\&. This \fB\-\-verity\-data=\fR specifies a path to a file with the Verity data to use for the OS image, in case it is stored in a detached file\&. It is recommended to embed the Verity data directly in the image, using the Verity mechanisms in the \m[blue]\fBDiscoverable Partitions Specification\fR\m[]\&\s-2\u[1]\d\s+2\&. +.sp +Added in version 247\&. .RE .PP \fB\-\-loop\-ref=\fR @@ -440,6 +484,16 @@ Configures the "reference" string the kernel shall report as backing file for th field for the block device\&. Note this is distinct from the /sys/class/block/loopX/loop/backing_file attribute file that always reports a path referring to the actual backing file\&. The latter is subject to mount namespace translation, the former is not\&. +.sp +This setting is particularly useful in combination with the +\fB\-\-attach\fR +command, as it allows later referencing the allocated loop device via +/dev/disk/by\-loop\-ref/\&... +symlinks\&. Example: first, set up the loopback device via +\fBsystemd\-dissect attach \-\-loop\-ref=quux foo\&.raw\fR, and then reference it in a command via the specified filename: +\fBcfdisk /dev/disk/by\-loop\-ref/quux\fR\&. +.sp +Added in version 254\&. .RE .PP \fB\-\-mtree\-hash=no\fR @@ -448,6 +502,8 @@ If combined with \fB\-\-mtree\fR, turns off inclusion of file hashes in the mtree output\&. This makes the \fB\-\-mtree\fR faster when operating on large images\&. +.sp +Added in version 254\&. .RE .PP \fB\-\-image\-policy=\fR\fB\fIpolicy\fR\fR |