morpheus base system
git clone git://
Log | Files | Refs

switch_root.8 (641B)

      1 .TH SWITCH_ROOT 8 ubase-VERSION
      2 .SH NAME
      3 \fBswitch_root\fR - Switch to another filesystem as the root of the mount tree
      4 .SH SYNOPSIS
      5 \fBswitch_root\fR [\fB-c \fIconsole\fR] \fInewroot init
      7 \fBswitch_root\fR removes all files and directories on the current root filesystem and overmounts it with \fInewroot\fR.
      8 If a \fIconsole\fR is specified, redirect stdio and stderr to it.
      9 After the switch, execute \fIinit\fR.
     10 .TP
     11 \fBswitch_root\fR can only be run as PID 1 in an initramfs or tmpfs with a regular and executable /init.
     12 .SH OPTIONS
     13 .TP
     14 \fB-c\fR
     15 Redirect stdio and stderr to \fIconsole\fR after switching to \fInewroot\fR.