]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
Manual pages: unshare.1: EXAMPLES: improve persistent mount namespace example
authorMichael Kerrisk (man-pages) <mtk.manpages@gmail.com>
Thu, 28 May 2020 14:58:15 +0000 (16:58 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 29 May 2020 07:44:58 +0000 (09:44 +0200)
The text describing the persistent mount namespace example
is rather confused. Explain more clearly the purpose of making
the parent directory a bind mount with private propagation.
Also make a few other wording improvements.

Signed-off-by: Michael Kerrisk (man-pages) <mtk.manpages@gmail.com>
sys-utils/unshare.1

index ea170b13a45a0b7c172089c59908b3bd43b8d9b6..e3a23f78c3d734b7fc8be1b12a9a4edc4aa62650 100644 (file)
@@ -304,9 +304,16 @@ FOO
 .EE
 .in
 .PP
-Establish a persistent mount namespace referenced by the bind mount
-/root/namespaces/mnt.  This example shows a portable solution, because it
-makes sure that the bind mount is created on a shared filesystem.
+The following commands
+establish a persistent mount namespace referenced by the bind mount
+.IR /root/namespaces/mnt .
+In order to ensure that this bind mount does not get propagated
+to other mount namespaces,
+the parent directory
+.RI ( /root/namespaces )
+is first made a bind mount with
+.I private
+propagation.
 .PP
 .in +4n
 .EX