diff options
author | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-06-25 01:29:34 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-06-25 01:31:18 +0200 |
commit | cf89431cc54bfa4b48732133bd29ef9999368c36 (patch) | |
tree | 98cb4ad50799d09e8ea6844aa39e573b5e192a55 /package/busybox/config/init | |
parent | 01af213ee5720c929973534da555f89abaf301f5 (diff) |
busybox: update to 1.25.0
Diffstat (limited to 'package/busybox/config/init')
-rw-r--r-- | package/busybox/config/init/Config.in | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/package/busybox/config/init/Config.in b/package/busybox/config/init/Config.in index 7910b0f4d..09fdf9f98 100644 --- a/package/busybox/config/init/Config.in +++ b/package/busybox/config/init/Config.in @@ -79,6 +79,17 @@ config BUSYBOX_INIT help init is the first program run when the system boots. +config BUSYBOX_LINUXRC + bool "Support running init from within an initrd (not initramfs)" + default n + select BUSYBOX_FEATURE_SYSLOG + help + Legacy support for running init under the old-style initrd. Allows + the name linuxrc to act as init, and it doesn't assume init is PID 1. + + This does not apply to initramfs, which runs /init as PID 1 and + requires no special support. + config BUSYBOX_FEATURE_USE_INITTAB bool "Support reading an inittab file" default y @@ -166,6 +177,21 @@ config BUSYBOX_INIT_TERMINAL_TYPE Note that on Linux, init attempts to detect serial terminal and sets TERM to "vt102" if one is found. +config BUSYBOX_FEATURE_INIT_MODIFY_CMDLINE + bool "Modify the command-line to \"init\"" + default n + depends on BUSYBOX_INIT || BUSYBOX_LINUXRC + help + When launched as PID 1 and after parsing its arguments, init + wipes all the arguments but argv[0] and rewrites argv[0] to + contain only "init", so that its command-line appears solely as + "init" in tools such as ps. + If this option is set to Y, init will keep its original behavior, + otherwise, all the arguments including argv[0] will be preserved, + be they parsed or ignored by init. + The original command-line used to launch init can then be + retrieved in /proc/1/cmdline on Linux, for example. + config BUSYBOX_MESG bool "mesg" default n |