commit 6e3023fc27f153e9cb1adb31049feb09f5ec4baa
Author: FRIGN <[email protected]>
Date: Mon Apr 14 15:26:11 2014 +0200
Add switch_root manpage
diff --git a/switch_root.8 b/switch_root.8
new file mode 100644
index 0000000..739f667
--- /dev/null
+++ b/switch_root.8
@@ -0,0 +1,15 @@
+.TH SWITCH_ROOT 8 ubase-VERSION
+.SH NAME
+Bswitch_rootR - Switch to another filesystem as the root of the mount tree
+.SH SYNOPSIS
+Bswitch_rootR [B-c IconsoleR] Inewroot init
+.SH DESCRIPTION
+Bswitch_rootR removes all files and directories on the current root
filesystem and overmounts it with InewrootR.
+If a IconsoleR is specified, redirect stdio and stderr to it.
+After the switch, execute IinitR.
+.TP
+Bswitch_rootR can only be run as PID 1 in an initramfs or tmpfs with a
regular and executable /init.
+.SH OPTIONS
+.TP
+B-cR
+Redirect stdio and stderr to IconsoleR after switching to InewrootR.