]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
mount: (man) document --target-prefix
authorKarel Zak <kzak@redhat.com>
Thu, 31 Oct 2019 11:24:17 +0000 (12:24 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 31 Oct 2019 11:25:08 +0000 (12:25 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/mount.8

index 75d90e4e9be54f63ccc79b38858f08e112a8f5bd..9d31d8245b3fe2e4758ebd9a59ff13e1f2e12649 100644 (file)
@@ -787,6 +787,19 @@ If only one argument for the mount command is given then the argument might be
 interpreted as target (mountpoint) or source (device).  This option allows to
 explicitly define that the argument is the mount target.
 .TP
+.BI \-\-target\-prefix " directory"
+Prepend specified directory to all mount targets.  This option allows to follow
+fstab, but mount operations is done on another place, for example:
+.RS
+.RS
+.sp
+.B "mount \-\-all \-\-target\-prefix /chroot \-o X\-mount.mkdir
+.sp
+.RE
+mounts all from system fstab to /chroot, all missing muontpoint are created
+(due to X-mount.mkdir).  See also \fB\-\-fstab\fP to use an alternative fstab.
+.RE
+.TP
 .BR \-T , " \-\-fstab " \fIpath
 Specifies an alternative fstab file.  If \fIpath\fP is a directory then the files
 in the directory are sorted by