[Patch] Trival - Add warning to init/main.c

From: Avery, Brian
Date: Fri Jul 29 2005 - 15:19:03 EST

I passed init=/mylinuxrc to the kernel on the command line. The kernel
silently dropped down to exec /sbin/init. It turned out that /mylinuxrc
had improper permissions. Without any warning message from the kernel
that something was wrong it took awhile to find the issue. The patch
below adds a warning.

Brian Avery

--- init/main.c.orig 2005-07-29 13:27:18.666231288 -0400
+++ init/main.c 2005-07-29 13:01:08.000000000 -0400
@@ -701,9 +701,10 @@ static int init(void * unused)
* trying to recover a really broken machine.

- if (execute_command)
- run_init_process(execute_command);
+ if (execute_command){
+ run_init_process(execute_command);
+ printk(KERN_WARNING "Failed to execute %s. Attempting
+ }

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/