aboutsummaryrefslogtreecommitdiff
path: root/util-linux/switch_root.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2015-10-13 12:34:35 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2015-10-13 12:34:35 +0200
commitbf74fb44977d9b90c51dba19c1fd7f071147d955 (patch)
tree010eb533f2340e9f42c9fe08b6611a2792272890 /util-linux/switch_root.c
parent6390a3a4e5e44894a94b31b57a9b2a07a215f171 (diff)
downloadbusybox-w32-bf74fb44977d9b90c51dba19c1fd7f071147d955.tar.gz
busybox-w32-bf74fb44977d9b90c51dba19c1fd7f071147d955.tar.bz2
busybox-w32-bf74fb44977d9b90c51dba19c1fd7f071147d955.zip
typo fix in comment
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/switch_root.c')
-rw-r--r--util-linux/switch_root.c2
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
207That's why the careful sequencing above: we cd into the new mount point before 207That's why the careful sequencing above: we cd into the new mount point before
208we do the mount --move. Moving the mount point would otherwise make it 208we do the mount --move. Moving the mount point would otherwise make it
209totally inaccessible to is because cd-ing to the old path wouldn't give it to 209totally inaccessible to us because cd-ing to the old path wouldn't give it to
210us anymore, and cd "/" just gives us the cached dentry from when the process 210us anymore, and cd "/" just gives us the cached dentry from when the process
211was created (in this case the old initramfs one). But the "." symlink gives 211was created (in this case the old initramfs one). But the "." symlink gives
212us the dentry of the filesystem we just moved, so we can then "chroot ." to 212us the dentry of the filesystem we just moved, so we can then "chroot ." to