aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/s3c24xx
diff options
context:
space:
mode:
authorMirko Vogt <mirko@openwrt.org>2009-07-07 18:29:40 +0000
committerMirko Vogt <mirko@openwrt.org>2009-07-07 18:29:40 +0000
commit15288355a9400ed9b45a70b04831ee76233c0951 (patch)
tree78fdba66fba02dacf9abe4cd1322362c2d2e1170 /target/linux/s3c24xx
parent80f0f758b2f353f7736813adbb3b40d167224856 (diff)
downloadupstream-15288355a9400ed9b45a70b04831ee76233c0951.tar.gz
upstream-15288355a9400ed9b45a70b04831ee76233c0951.tar.bz2
upstream-15288355a9400ed9b45a70b04831ee76233c0951.zip
do not allow overriding the init argument by bootloaders
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16738 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/s3c24xx')
-rw-r--r--target/linux/s3c24xx/patches-2.6.30/150-ignore-init-argument.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/target/linux/s3c24xx/patches-2.6.30/150-ignore-init-argument.patch b/target/linux/s3c24xx/patches-2.6.30/150-ignore-init-argument.patch
new file mode 100644
index 0000000000..a6edb85140
--- /dev/null
+++ b/target/linux/s3c24xx/patches-2.6.30/150-ignore-init-argument.patch
@@ -0,0 +1,19 @@
+--- linux-2.6.30.1/init/main.c.orig 2009-07-07 19:35:25.000000000 +0200
++++ linux-2.6.30.1/init/main.c 2009-07-07 19:35:39.000000000 +0200
+@@ -830,11 +830,11 @@
+ * The Bourne shell can be used instead of init if we are
+ * trying to recover a really broken machine.
+ */
+- if (execute_command) {
+- run_init_process(execute_command);
+- printk(KERN_WARNING "Failed to execute %s. Attempting "
+- "defaults...\n", execute_command);
+- }
++ //if (execute_command) {
++ // run_init_process(execute_command);
++ // printk(KERN_WARNING "Failed to execute %s. Attempting "
++ // "defaults...\n", execute_command);
++ //}
+ run_init_process("/etc/preinit");
+
+ panic("No init found. Try passing init= option to kernel.");