[PATCH] Add switch_root manpage

From: FRIGN <dev_AT_frign.de>
Date: Mon, 14 Apr 2014 15:26:11 +0200

---
 switch_root.1 | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 switch_root.1
diff --git a/switch_root.1 b/switch_root.1
new file mode 100644
index 0000000..78db6e4
--- /dev/null
+++ b/switch_root.1
_AT_@ -0,0 +1,15 @@
+.TH SWITCH_ROOT 1 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 \fIconsole\fR
+Redirect stdio and stderr to \fIconsole\fR after switching to \fInewroot\fR.
-- 
1.8.3.2
--Multipart=_Mon__14_Apr_2014_15_29_10_+0200_n=a5IbiE1pNQfwGp--
Received on Mon Sep 17 2001 - 00:00:00 CEST

This archive was generated by hypermail 2.3.0 : Mon Apr 14 2014 - 15:48:04 CEST