diff options
Diffstat (limited to 'init')
-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") || |