UBUNTU: SAUCE: add option to hand off all kernel parameters to init
authorAndy Whitcroft <apw@canonical.com>
Thu, 17 Jun 2010 09:46:47 +0000 (10:46 +0100)
committerLeann Ogasawara <leann.ogasawara@canonical.com>
Mon, 28 Mar 2011 13:48:47 +0000 (06:48 -0700)
commit234b2bc9a96ddbdd00541e4f1c194124d07c31f1
tree765f5e7a99eba6ce30599803d14086d11b5122fd
parentc49e2fb66203406273257d06356c5a760e798cf7
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>
include/linux/moduleparam.h
init/Kconfig
init/main.c
kernel/params.c