diff options
author | John Crispin <blogic@openwrt.org> | 2013-04-03 10:00:50 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2013-04-03 10:00:50 +0000 |
commit | c0d814a55fb942447b6bb71fa2c31c733f3ab064 (patch) | |
tree | d9587c25aa226e2fe4bcfba3356760d2b888b9f7 /target/linux/generic | |
parent | 7a320b8ae57552c50216b6d74dabf0be7ef734f8 (diff) | |
download | upstream-c0d814a55fb942447b6bb71fa2c31c733f3ab064.tar.gz upstream-c0d814a55fb942447b6bb71fa2c31c733f3ab064.tar.bz2 upstream-c0d814a55fb942447b6bb71fa2c31c733f3ab064.zip |
[kernel] Patch for invoking (pre)init
http://patchwork.openwrt.org/patch/3485/
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36183 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic')
-rw-r--r-- | target/linux/generic/patches-3.8/921-use_preinit_as_init.patch | 20 | ||||
-rw-r--r-- | target/linux/generic/patches-3.9/921-use_preinit_as_init.patch | 20 |
2 files changed, 20 insertions, 20 deletions
diff --git a/target/linux/generic/patches-3.8/921-use_preinit_as_init.patch b/target/linux/generic/patches-3.8/921-use_preinit_as_init.patch index 4cc3695684..482e2525df 100644 --- a/target/linux/generic/patches-3.8/921-use_preinit_as_init.patch +++ b/target/linux/generic/patches-3.8/921-use_preinit_as_init.patch @@ -1,14 +1,14 @@ ---- a/init/main.c -+++ b/init/main.c -@@ -835,10 +835,7 @@ static int __ref kernel_init(void *unuse +Index: linux-3.8.3/init/main.c +=================================================================== +--- linux-3.8.3.orig/init/main.c 2013-04-02 21:43:30.000000000 +0200 ++++ linux-3.8.3/init/main.c 2013-04-02 21:44:26.362130897 +0200 +@@ -835,7 +835,8 @@ printk(KERN_WARNING "Failed to execute %s. Attempting " "defaults...\n", execute_command); } - if (!run_init_process("/sbin/init") || -- !run_init_process("/etc/init") || -- !run_init_process("/bin/init") || -- !run_init_process("/bin/sh")) -+ if (!run_init_process("/etc/preinit")) - return 0; - - panic("No init found. Try passing init= option to kernel. " ++ if (!run_init_process("/etc/preinit") || ++ !run_init_process("/sbin/init") || + !run_init_process("/etc/init") || + !run_init_process("/bin/init") || + !run_init_process("/bin/sh")) diff --git a/target/linux/generic/patches-3.9/921-use_preinit_as_init.patch b/target/linux/generic/patches-3.9/921-use_preinit_as_init.patch index 6004a7009d..482e2525df 100644 --- a/target/linux/generic/patches-3.9/921-use_preinit_as_init.patch +++ b/target/linux/generic/patches-3.9/921-use_preinit_as_init.patch @@ -1,14 +1,14 @@ ---- a/init/main.c -+++ b/init/main.c -@@ -848,10 +848,7 @@ static int __ref kernel_init(void *unuse +Index: linux-3.8.3/init/main.c +=================================================================== +--- linux-3.8.3.orig/init/main.c 2013-04-02 21:43:30.000000000 +0200 ++++ linux-3.8.3/init/main.c 2013-04-02 21:44:26.362130897 +0200 +@@ -835,7 +835,8 @@ printk(KERN_WARNING "Failed to execute %s. Attempting " "defaults...\n", execute_command); } - if (!run_init_process("/sbin/init") || -- !run_init_process("/etc/init") || -- !run_init_process("/bin/init") || -- !run_init_process("/bin/sh")) -+ if (!run_init_process("/etc/preinit")) - return 0; - - panic("No init found. Try passing init= option to kernel. " ++ if (!run_init_process("/etc/preinit") || ++ !run_init_process("/sbin/init") || + !run_init_process("/etc/init") || + !run_init_process("/bin/init") || + !run_init_process("/bin/sh")) |