diff options
Diffstat (limited to 'util-linux/switch_root.c')
-rw-r--r-- | util-linux/switch_root.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/util-linux/switch_root.c b/util-linux/switch_root.c index 92e385b98..32708934e 100644 --- a/util-linux/switch_root.c +++ b/util-linux/switch_root.c | |||
@@ -10,20 +10,20 @@ | |||
10 | //config: default y | 10 | //config: default y |
11 | //config: select PLATFORM_LINUX | 11 | //config: select PLATFORM_LINUX |
12 | //config: help | 12 | //config: help |
13 | //config: The switch_root utility is used from initramfs to select a new | 13 | //config: The switch_root utility is used from initramfs to select a new |
14 | //config: root device. Under initramfs, you have to use this instead of | 14 | //config: root device. Under initramfs, you have to use this instead of |
15 | //config: pivot_root. (Stop reading here if you don't care why.) | 15 | //config: pivot_root. (Stop reading here if you don't care why.) |
16 | //config: | 16 | //config: |
17 | //config: Booting with initramfs extracts a gzipped cpio archive into rootfs | 17 | //config: Booting with initramfs extracts a gzipped cpio archive into rootfs |
18 | //config: (which is a variant of ramfs/tmpfs). Because rootfs can't be moved | 18 | //config: (which is a variant of ramfs/tmpfs). Because rootfs can't be moved |
19 | //config: or unmounted*, pivot_root will not work from initramfs. Instead, | 19 | //config: or unmounted*, pivot_root will not work from initramfs. Instead, |
20 | //config: switch_root deletes everything out of rootfs (including itself), | 20 | //config: switch_root deletes everything out of rootfs (including itself), |
21 | //config: does a mount --move that overmounts rootfs with the new root, and | 21 | //config: does a mount --move that overmounts rootfs with the new root, and |
22 | //config: then execs the specified init program. | 22 | //config: then execs the specified init program. |
23 | //config: | 23 | //config: |
24 | //config: * Because the Linux kernel uses rootfs internally as the starting | 24 | //config: * Because the Linux kernel uses rootfs internally as the starting |
25 | //config: and ending point for searching through the kernel's doubly linked | 25 | //config: and ending point for searching through the kernel's doubly linked |
26 | //config: list of active mount points. That's why. | 26 | //config: list of active mount points. That's why. |
27 | 27 | ||
28 | //applet:IF_SWITCH_ROOT(APPLET(switch_root, BB_DIR_SBIN, BB_SUID_DROP)) | 28 | //applet:IF_SWITCH_ROOT(APPLET(switch_root, BB_DIR_SBIN, BB_SUID_DROP)) |
29 | 29 | ||