aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/moduleparam.h
diff options
context:
space:
mode:
authorAndy Whitcroft <apw@canonical.com>2010-06-17 05:46:47 -0400
committerLeann Ogasawara <leann.ogasawara@canonical.com>2011-08-30 13:14:49 -0400
commited47a047553e7c01c72a71ef77a577e58979c867 (patch)
tree2e1634842791013e6c291c39c2ab5f83f2114aa2 /include/linux/moduleparam.h
parent750f4ac0352e1dda6148d16ed9f1c45218dc01fe (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 'include/linux/moduleparam.h')
-rw-r--r--include/linux/moduleparam.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/moduleparam.h b/include/linux/moduleparam.h
index ddaae98c53f..6c4a5ac7ee5 100644
--- a/include/linux/moduleparam.h
+++ b/include/linux/moduleparam.h
@@ -267,7 +267,7 @@ extern int parse_args(const char *name,
267 char *args, 267 char *args,
268 const struct kernel_param *params, 268 const struct kernel_param *params,
269 unsigned num, 269 unsigned num,
270 int (*unknown)(char *param, char *val)); 270 int (*handle)(char *param, char *val, int known));
271 271
272/* Called by module remove. */ 272/* Called by module remove. */
273#ifdef CONFIG_SYSFS 273#ifdef CONFIG_SYSFS