From: Andy Lutomirski Date: Wed, 10 Dec 2014 23:52:19 +0000 (-0800) Subject: init: allow CONFIG_INIT_FALLBACK=n to disable defaults if init= fails X-Git-Tag: omap-for-v3.20/drop-legacy-3517~139^2~65 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ef4536e2f19c4dba3637413d73ea00b19764bc0;p=pandora-kernel.git init: allow CONFIG_INIT_FALLBACK=n to disable defaults if init= fails If a user puts init=/whatever on the command line and /whatever can't be run, then the kernel will try a few default options before giving up. If init=/whatever came from a bootloader prompt, then this is unexpected but probably harmless. On the other hand, if it comes from a script (e.g. a tool like virtme or perhaps a future kselftest script), then the fallbacks are likely to exist, but they'll do the wrong thing. For example, they might unexpectedly invoke systemd. This adds a config option CONFIG_INIT_FALLBACK. If unset, then a failure to run the specified init= process be fatal. The tentative plan is to remove CONFIG_INIT_FALLBACK for 3.20. [akpm@linux-foundation.org: coding-style fixes] Signed-off-by: Andy Lutomirski Cc: Rob Landley Cc: Chuck Ebbert Cc: Randy Dunlap Cc: Shuah Khan Cc: Frank Rowand Cc: Josh Triplett Acked-by: Rusty Russell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed