Add switch_root manpage
This commit is contained in:
parent
e43a102f11
commit
6e3023fc27
15
switch_root.8
Normal file
15
switch_root.8
Normal file
@ -0,0 +1,15 @@
|
||||
.TH SWITCH_ROOT 8 ubase-VERSION
|
||||
.SH NAME
|
||||
\fBswitch_root\fR - Switch to another filesystem as the root of the mount tree
|
||||
.SH SYNOPSIS
|
||||
\fBswitch_root\fR [\fB-c \fIconsole\fR] \fInewroot init
|
||||
.SH DESCRIPTION
|
||||
\fBswitch_root\fR removes all files and directories on the current root filesystem and overmounts it with \fInewroot\fR.
|
||||
If a \fIconsole\fR is specified, redirect stdio and stderr to it.
|
||||
After the switch, execute \fIinit\fR.
|
||||
.TP
|
||||
\fBswitch_root\fR can only be run as PID 1 in an initramfs or tmpfs with a regular and executable /init.
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
\fB-c\fR
|
||||
Redirect stdio and stderr to \fIconsole\fR after switching to \fInewroot\fR.
|
Loading…
Reference in New Issue
Block a user