From: Karel Zak Date: Thu, 31 Oct 2019 11:24:17 +0000 (+0100) Subject: mount: (man) document --target-prefix X-Git-Tag: v2.35-rc1~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2cb9359c1b5e51a53ca89dbe38492c276d8ad92;p=thirdparty%2Futil-linux.git mount: (man) document --target-prefix Signed-off-by: Karel Zak --- diff --git a/sys-utils/mount.8 b/sys-utils/mount.8 index 75d90e4e9b..9d31d8245b 100644 --- a/sys-utils/mount.8 +++ b/sys-utils/mount.8 @@ -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