aboutsummaryrefslogtreecommitdiff
path: root/init/Kconfig
diff options
context:
space:
mode:
authorAndy Whitcroft <apw@canonical.com>2010-06-17 10:46:47 +0100
committerJohn Rigby <john.rigby@linaro.org>2011-10-17 02:32:50 -0600
commit8c9fb0d4aeebaa01c78e8ffc2677889c0d8095a2 (patch)
tree0a58610e55dda5a102408f7921c413a7935a9145 /init/Kconfig
parent2cb5ffca4d6c8da44e689caf8e1feeacc466855e (diff)
UBUNTU: SAUCE: add option to hand off all kernel parameters to init
BugLink: http://bugs.launchpad.net/bugs/586386 Some init packages such as upstart find having all of the kernel parameters passed in useful. Currently they have to open up /proc/cmdline and reparse that to obtain this information. Add a kernel configuration option to enable passing of all options. Note, enabling this option will reduce the chances that a fallback from /sbin/init to /bin/bash or /bin/sh will succeed. Though it should be noted that there are commonly unknown options present which would already break this fallback. init=/bin/foo provides explicit control over options which is unaffected by this change. Signed-off-by: Andy Whitcroft <apw@canonical.com> Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>
Diffstat (limited to 'init/Kconfig')
-rw-r--r--init/Kconfig7
1 files changed, 7 insertions, 0 deletions
diff --git a/init/Kconfig b/init/Kconfig
index d47ace970a1..3fa57a9d013 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -76,6 +76,13 @@ config INIT_ENV_ARG_LIMIT
Maximum of each of the number of arguments and environment
variables passed to init from the kernel command line.
+config INIT_PASS_ALL_PARAMS
+ bool "Pass all (known and unknown) kernel parameters to init"
+ default n
+ help
+ Pass all kernel command line parameters to init, this includes
+ those consumed by kernel modules. This is useful for upstart
+ based systems. If in doubt say N.
config CROSS_COMPILE
string "Cross-compiler tool prefix"