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-w32-dd898c9f3388fca1d7339a45150fbb7406de0971.tar.gz
busybox-w32-dd898c9f3388fca1d7339a45150fbb7406de0971.tar.bz2
busybox-w32-dd898c9f3388fca1d7339a45150fbb7406de0971.zip
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 @@
8 * 8 *
9 * Licensed under GPLv2, see file LICENSE in this source tree. 9 * Licensed under GPLv2, see file LICENSE in this source tree.
10 */ 10 */
11//config:config PIVOT_ROOT
12//config: bool "pivot_root"
13//config: default y
14//config: select PLATFORM_LINUX
15//config: help
16//config: The pivot_root utility swaps the mount points for the root filesystem
17//config: with some other mounted filesystem. This allows you to do all sorts
18//config: of wild and crazy things with your Linux system and is far more
19//config: powerful than 'chroot'.
20//config:
21//config: Note: This is for initrd in linux 2.4. Under initramfs (introduced
22//config: in linux 2.6) use switch_root instead.
23
24//applet:IF_PIVOT_ROOT(APPLET(pivot_root, BB_DIR_SBIN, BB_SUID_DROP))
25
26//kbuild:lib-$(CONFIG_PIVOT_ROOT) += pivot_root.o
11 27
12//usage:#define pivot_root_trivial_usage 28//usage:#define pivot_root_trivial_usage
13//usage: "NEW_ROOT PUT_OLD" 29//usage: "NEW_ROOT PUT_OLD"