pivot_root.2: Document EINVAL if root is rootfs

Per the comment on the pivot_root syscall in fs/namespace.c:

    Also, the current root cannot be on the 'rootfs'
    (initial ramfs) filesystem.  See
    Documentation/filesystems/ramfs-rootfs-initramfs.txt
    for alternatives in this situation.

Signed-off-by: Joseph C. Sible <josephcsible@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Joseph Sible 2018-08-09 00:23:13 -04:00 committed by Michael Kerrisk
parent 30a264ba19
commit dc9b6c9285
1 changed files with 3 additions and 0 deletions

View File

@ -112,6 +112,9 @@ or a filesystem is already mounted on \fIput_old\fP.
.B EINVAL
\fIput_old\fP is not underneath \fInew_root\fP.
.TP
.B EINVAL
The current root is on the rootfs (initial ramfs) filesystem.
.TP
.B ENOTDIR
\fInew_root\fP or \fIput_old\fP is not a directory.
.TP