aboutsummaryrefslogtreecommitdiff
path: root/util-linux/pivot_root.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2016-11-23 11:46:32 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2016-11-23 11:46:32 +0100
commitdd898c9f3388fca1d7339a45150fbb7406de0971 (patch)
treef9f498c9d86c26bd208acc687c5f29b451927ce3 /util-linux/pivot_root.c
parente5dd71f94f8691c41382b89de35088695cca34b9 (diff)
downloadbusybox-dd898c9f3388fca1d7339a45150fbb7406de0971.tar.gz
Convert all util-linux/* applets to "new style" applet definitions
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/pivot_root.c')
-rw-r--r--util-linux/pivot_root.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/util-linux/pivot_root.c b/util-linux/pivot_root.c
index 83f01fabd..9bdae506c 100644
--- a/util-linux/pivot_root.c
+++ b/util-linux/pivot_root.c
@@ -8,6 +8,22 @@
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
+//config:config PIVOT_ROOT
+//config: bool "pivot_root"
+//config: default y
+//config: select PLATFORM_LINUX
+//config: help
+//config: The pivot_root utility swaps the mount points for the root filesystem
+//config: with some other mounted filesystem. This allows you to do all sorts
+//config: of wild and crazy things with your Linux system and is far more
+//config: powerful than 'chroot'.
+//config:
+//config: Note: This is for initrd in linux 2.4. Under initramfs (introduced
+//config: in linux 2.6) use switch_root instead.
+
+//applet:IF_PIVOT_ROOT(APPLET(pivot_root, BB_DIR_SBIN, BB_SUID_DROP))
+
+//kbuild:lib-$(CONFIG_PIVOT_ROOT) += pivot_root.o
//usage:#define pivot_root_trivial_usage
//usage: "NEW_ROOT PUT_OLD"