Ignore:
Timestamp:
Jan 1, 2014, 12:47:38 AM (7 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.21.1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi-busybox/util-linux/switch_root.c

    r2725 r3232  
    66 * Licensed under GPLv2, see file LICENSE in this source tree.
    77 */
     8
     9//usage:#define switch_root_trivial_usage
     10//usage:       "[-c /dev/console] NEW_ROOT NEW_INIT [ARGS]"
     11//usage:#define switch_root_full_usage "\n\n"
     12//usage:       "Free initramfs and switch to another root fs:\n"
     13//usage:       "chroot to NEW_ROOT, delete all in /, move NEW_ROOT to /,\n"
     14//usage:       "execute NEW_INIT. PID must be 1. NEW_ROOT must be a mountpoint.\n"
     15//usage:     "\n    -c DEV  Reopen stdio to DEV after switch"
     16
    817#include <sys/vfs.h>
    918#include <sys/mount.h>
     
    106115    xchroot(".");
    107116    // The chdir is needed to recalculate "." and ".." links
    108     xchdir("/");
     117    /*xchdir("/"); - done in xchroot */
    109118
    110119    // If a new console specified, redirect stdin/stdout/stderr to it
Note: See TracChangeset for help on using the changeset viewer.