From: Neil Brown Signed-off-by: Neil Brown Signed-off-by: Andrew Morton --- fs/namespace.c | 4 ++++ 1 files changed, 4 insertions(+) diff -puN fs/namespace.c~pivot_root-add-comment fs/namespace.c --- devel/fs/namespace.c~pivot_root-add-comment 2005-11-26 20:29:12.000000000 -0800 +++ devel-akpm/fs/namespace.c 2005-11-26 20:29:12.000000000 -0800 @@ -1526,6 +1526,10 @@ static void chroot_fs_refs(struct nameid * pointed to by put_old must yield the same directory as new_root. No other * file system may be mounted on put_old. After all, new_root is a mountpoint. * + * Also, the current root cannot be on the 'rootfs' (initial ramfs) filesystem. + * See Documentation/filesystems/ramfs-rootfs-initramfs.txt for alternatives + * in this situation. + * * Notes: * - we don't move root/cwd if they are not at the root (reason: if something * cared enough to change them, it's probably wrong to force them elsewhere) _