commit | 0ad82344743e990e6985a8ee1b39a85fc4126084 | [log] [tgz] |
---|---|---|
author | Denis Vlasenko <vda.linux@googlemail.com> | Tue Apr 21 00:29:17 2009 +0000 |
committer | Denis Vlasenko <vda.linux@googlemail.com> | Tue Apr 21 00:29:17 2009 +0000 |
tree | c56e7cdb46ad73dd819ce77ed78827651d4253ec | |
parent | 1b47bbdfa485aa7361c44718ddb29ba75a9cfe7b [diff] [blame] |
switch_root: print errno on failure
diff --git a/util-linux/switch_root.c b/util-linux/switch_root.c index 21cc992..08aa725 100644 --- a/util-linux/switch_root.c +++ b/util-linux/switch_root.c
@@ -97,7 +97,7 @@ // Overmount / with newdir and chroot into it. The chdir is needed to // recalculate "." and ".." links. if (mount(".", "/", NULL, MS_MOVE, NULL)) - bb_error_msg_and_die("error moving root"); + bb_perror_msg_and_die("error moving root"); xchroot("."); xchdir("/");