dd: code shrink
[oweals/busybox.git] / util-linux / switch_root.c
index 7794de18d4d6f6bec78f2d39957ab6903d48c777..a301b365b8955bce3f518e051f098fcaed6ab4b6 100644 (file)
@@ -12,7 +12,6 @@
 //usage:       "Free initramfs and switch to another root fs:\n"
 //usage:       "chroot to NEW_ROOT, delete all in /, move NEW_ROOT to /,\n"
 //usage:       "execute NEW_INIT. PID must be 1. NEW_ROOT must be a mountpoint.\n"
-//usage:     "\nOptions:"
 //usage:     "\n       -c DEV  Reopen stdio to DEV after switch"
 
 #include <sys/vfs.h>
@@ -115,7 +114,7 @@ int switch_root_main(int argc UNUSED_PARAM, char **argv)
        }
        xchroot(".");
        // The chdir is needed to recalculate "." and ".." links
-       xchdir("/");
+       /*xchdir("/"); - done in xchroot */
 
        // If a new console specified, redirect stdin/stdout/stderr to it
        if (console) {