diff options
Diffstat (limited to 'util-linux/switch_root.c')
-rw-r--r-- | util-linux/switch_root.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/switch_root.c b/util-linux/switch_root.c index a301b365b..7960b672c 100644 --- a/util-linux/switch_root.c +++ b/util-linux/switch_root.c | |||
@@ -206,7 +206,7 @@ because they're what all paths your process uses would be relative to. | |||
206 | 206 | ||
207 | That's why the careful sequencing above: we cd into the new mount point before | 207 | That's why the careful sequencing above: we cd into the new mount point before |
208 | we do the mount --move. Moving the mount point would otherwise make it | 208 | we do the mount --move. Moving the mount point would otherwise make it |
209 | totally inaccessible to is because cd-ing to the old path wouldn't give it to | 209 | totally inaccessible to us because cd-ing to the old path wouldn't give it to |
210 | us anymore, and cd "/" just gives us the cached dentry from when the process | 210 | us anymore, and cd "/" just gives us the cached dentry from when the process |
211 | was created (in this case the old initramfs one). But the "." symlink gives | 211 | was created (in this case the old initramfs one). But the "." symlink gives |
212 | us the dentry of the filesystem we just moved, so we can then "chroot ." to | 212 | us the dentry of the filesystem we just moved, so we can then "chroot ." to |