kernel/3.1[02]: move MTD root device setup code to mtdcore
[openwrt/svn-archive/archive.git] / target / linux / generic / patches-3.10 / 921-use_preinit_as_init.patch
1 --- a/init/main.c
2 +++ b/init/main.c
3 @@ -840,7 +840,8 @@ static int __ref kernel_init(void *unuse
4 pr_err("Failed to execute %s. Attempting defaults...\n",
5 execute_command);
6 }
7 - if (!run_init_process("/sbin/init") ||
8 + if (!run_init_process("/etc/preinit") ||
9 + !run_init_process("/sbin/init") ||
10 !run_init_process("/etc/init") ||
11 !run_init_process("/bin/init") ||
12 !run_init_process("/bin/sh"))