File tree Expand file tree Collapse file tree 2 files changed +0
-21
lines changed Expand file tree Collapse file tree 2 files changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -1287,22 +1287,6 @@ source "usr/Kconfig"
1287
1287
1288
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
1290
config CC_OPTIMIZE_FOR_SIZE
1307
1291
bool "Optimize for size"
1308
1292
help
Original file line number Diff line number Diff line change @@ -953,13 +953,8 @@ static int __ref kernel_init(void *unused)
953
953
ret = run_init_process (execute_command );
954
954
if (!ret )
955
955
return 0 ;
956
- #ifndef CONFIG_INIT_FALLBACK
957
956
panic ("Requested init %s failed (error %d)." ,
958
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
959
if (!try_to_run_init_process ("/sbin/init" ) ||
965
960
!try_to_run_init_process ("/etc/init" ) ||
You can’t perform that action at this time.
0 commit comments