pivot_root.2: Simplify discussion of restrictions for 'new_root'

Philipp Wendler noted that the text on the restrictions for
'new_root' was slightly contradictory, and things could be
clarified and simplified by describing the restrictions on
'new_root' in one place.

Reported-by: Philipp Wendler <ml@philippwendler.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2019-10-09 09:37:35 +02:00
parent b27d444f34
commit 9f3af6b8c8
1 changed files with 7 additions and 9 deletions

View File

@ -72,13 +72,8 @@ and
.IR put_old
must be directories.
.IP \-
\fInew_root\fP and \fIput_old\fP must not be on the same filesystem as
\fIput_old\fP must not be on the same filesystem as
the current root.
In particular,
.IR new_root
can't be
.IR """/"""
(but can be a bind mounted directory on the current root filesystem).
.IP \-
\fIput_old\fP must be at or underneath \fInew_root\fP;
that is, adding a nonnegative
@ -86,10 +81,13 @@ number of \fI/..\fP to the string pointed to by \fIput_old\fP must yield
the same directory as \fInew_root\fP.
.IP \-
.I new_root
must be a mount point.
(If it is not otherwise a mount point, it suffices to bind mount
must be a mount point, but can't be
.IR """/""" .
If it is not otherwise a mount point, it suffices to bind mount
.I new_root
on top of itself.)
on top of itself.
.RI ( new_root
can be a bind mounted directory on the current root filesystem.)
.IP \-
The propagation type of the parent mount of
.IR new_root