From bf74fb44977d9b90c51dba19c1fd7f071147d955 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 13 Oct 2015 12:34:35 +0200 Subject: [PATCH] typo fix in comment Signed-off-by: Denys Vlasenko --- util-linux/switch_root.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. That's why the careful sequencing above: we cd into the new mount point before we do the mount --move. Moving the mount point would otherwise make it -totally inaccessible to is because cd-ing to the old path wouldn't give it to +totally inaccessible to us because cd-ing to the old path wouldn't give it to us anymore, and cd "/" just gives us the cached dentry from when the process was created (in this case the old initramfs one). But the "." symlink gives us the dentry of the filesystem we just moved, so we can then "chroot ." to -- 2.25.1