mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
[PATCH] pivot_root: add comment
Signed-off-by: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
c809406b4f
commit
4a0d11fae5
1 changed files with 4 additions and 0 deletions
|
@ -1526,6 +1526,10 @@ static void chroot_fs_refs(struct nameidata *old_nd, struct nameidata *new_nd)
|
|||
* 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)
|
||||
|
|
Loading…
Reference in a new issue