openwrtv4/target/linux/generic/patches-4.1/921-use_preinit_as_init.patch
Felix Fietkau 54f5f6fa6c kernel: update to linux 4.1.3
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46437
2015-07-22 12:45:07 +00:00

12 lines
465 B
Diff

--- a/init/main.c
+++ b/init/main.c
@@ -960,7 +960,8 @@ static int __ref kernel_init(void *unuse
panic("Requested init %s failed (error %d).",
execute_command, ret);
}
- if (!try_to_run_init_process("/sbin/init") ||
+ if (!try_to_run_init_process("/etc/preinit") ||
+ !try_to_run_init_process("/sbin/init") ||
!try_to_run_init_process("/etc/init") ||
!try_to_run_init_process("/bin/init") ||
!try_to_run_init_process("/bin/sh"))