diff options
| author | Andy Lutomirski <luto@amacapital.net> | 2015-02-13 17:40:21 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-14 00:21:42 -0500 |
| commit | 5125991c9a9360fbdb717e22783c970bbd140660 (patch) | |
| tree | e6709a73481011458fda0c0d4581c046c8d7d511 | |
| parent | bebf56a1b176c2e1c9efe44e7e6915532cc682cf (diff) | |
init: remove CONFIG_INIT_FALLBACK
CONFIG_INIT_FALLBACK adds config bloat without an obvious use case that
makes it worth keeping around. Delete it.
Signed-off-by: Andy Lutomirski <luto@amacapital.net>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Chuck Ebbert <cebbert.lkml@gmail.com>
Cc: Frank Rowand <frowand.list@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Cc: Randy Dunlap <rdunlap@infradead.org>
Cc: Rob Landley <rob@landley.net>
Cc: Shuah Khan <shuah.kh@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
| -rw-r--r-- | init/Kconfig | 16 | ||||
| -rw-r--r-- | init/main.c | 5 |
2 files changed, 0 insertions, 21 deletions
diff --git a/init/Kconfig b/init/Kconfig index 1354ac09b516..058e3671fa11 100644 --- a/init/Kconfig +++ b/init/Kconfig | |||
| @@ -1287,22 +1287,6 @@ source "usr/Kconfig" | |||
| 1287 | 1287 | ||
| 1288 | endif | 1288 | endif |
| 1289 | 1289 | ||
| 1290 | config INIT_FALLBACK | ||
| 1291 | bool "Fall back to defaults if init= parameter is bad" | ||
| 1292 | default y | ||
| 1293 | help | ||
| 1294 | If enabled, the kernel will try the default init binaries if an | ||
| 1295 | explicit request from the init= parameter fails. | ||
| 1296 | |||
| 1297 | This can have unexpected effects. For example, booting | ||
| 1298 | with init=/sbin/kiosk_app will run /sbin/init or even /bin/sh | ||
| 1299 | if /sbin/kiosk_app cannot be executed. | ||
| 1300 | |||
| 1301 | The default value of Y is consistent with historical behavior. | ||
| 1302 | Selecting N is likely to be more appropriate for most uses, | ||
| 1303 | especially on kiosks and on kernels that are intended to be | ||
| 1304 | run under the control of a script. | ||
| 1305 | |||
| 1306 | config CC_OPTIMIZE_FOR_SIZE | 1290 | config CC_OPTIMIZE_FOR_SIZE |
| 1307 | bool "Optimize for size" | 1291 | bool "Optimize for size" |
| 1308 | help | 1292 | help |
diff --git a/init/main.c b/init/main.c index 179ada15d08a..6f0f1c5ff8cc 100644 --- a/init/main.c +++ b/init/main.c | |||
| @@ -953,13 +953,8 @@ static int __ref kernel_init(void *unused) | |||
| 953 | ret = run_init_process(execute_command); | 953 | ret = run_init_process(execute_command); |
| 954 | if (!ret) | 954 | if (!ret) |
| 955 | return 0; | 955 | return 0; |
| 956 | #ifndef CONFIG_INIT_FALLBACK | ||
| 957 | panic("Requested init %s failed (error %d).", | 956 | panic("Requested init %s failed (error %d).", |
| 958 | execute_command, ret); | 957 | execute_command, ret); |
| 959 | #else | ||
| 960 | pr_err("Failed to execute %s (error %d). Attempting defaults...\n", | ||
| 961 | execute_command, ret); | ||
| 962 | #endif | ||
| 963 | } | 958 | } |
| 964 | if (!try_to_run_init_process("/sbin/init") || | 959 | if (!try_to_run_init_process("/sbin/init") || |
| 965 | !try_to_run_init_process("/etc/init") || | 960 | !try_to_run_init_process("/etc/init") || |
