diff options
Diffstat (limited to 'util-linux')
-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 21cc99229..08aa72597 100644 --- a/util-linux/switch_root.c +++ b/util-linux/switch_root.c | |||
@@ -97,7 +97,7 @@ int switch_root_main(int argc UNUSED_PARAM, char **argv) | |||
97 | // Overmount / with newdir and chroot into it. The chdir is needed to | 97 | // Overmount / with newdir and chroot into it. The chdir is needed to |
98 | // recalculate "." and ".." links. | 98 | // recalculate "." and ".." links. |
99 | if (mount(".", "/", NULL, MS_MOVE, NULL)) | 99 | if (mount(".", "/", NULL, MS_MOVE, NULL)) |
100 | bb_error_msg_and_die("error moving root"); | 100 | bb_perror_msg_and_die("error moving root"); |
101 | xchroot("."); | 101 | xchroot("."); |
102 | xchdir("/"); | 102 | xchdir("/"); |
103 | 103 | ||