kernel: add support for 3.9-rc2
[openwrt/openwrt.git] / target / linux / generic / patches-3.9 / 921-use_preinit_as_init.patch
1 --- a/init/main.c
2 +++ b/init/main.c
3 @@ -848,10 +848,7 @@ static int __ref kernel_init(void *unuse
4 printk(KERN_WARNING "Failed to execute %s. Attempting "
5 "defaults...\n", execute_command);
6 }
7 - if (!run_init_process("/sbin/init") ||
8 - !run_init_process("/etc/init") ||
9 - !run_init_process("/bin/init") ||
10 - !run_init_process("/bin/sh"))
11 + if (!run_init_process("/etc/preinit"))
12 return 0;
13
14 panic("No init found. Try passing init= option to kernel. "