From dd898c9f3388fca1d7339a45150fbb7406de0971 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 23 Nov 2016 11:46:32 +0100 Subject: Convert all util-linux/* applets to "new style" applet definitions Signed-off-by: Denys Vlasenko --- util-linux/pivot_root.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'util-linux/pivot_root.c') 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" -- cgit v1.2.3