[PATCH] init: Warn on non-existent rdinit

From: Richard Weinberger
Date: Thu Jan 05 2012 - 13:57:11 EST


Such a warning would have saved me some time...
Hopefully this printk() saves someone else's time. :-)

Signed-off-by: Richard Weinberger <richard@xxxxxx>
---
init/main.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/init/main.c b/init/main.c
index 217ed23..43733c4 100644
--- a/init/main.c
+++ b/init/main.c
@@ -834,6 +834,8 @@ static int __init kernel_init(void * unused)
ramdisk_execute_command = "/init";

if (sys_access((const char __user *) ramdisk_execute_command, 0) != 0) {
+ printk(KERN_WARNING "Warning: unable to access %s!\n",
+ ramdisk_execute_command);
ramdisk_execute_command = NULL;
prepare_namespace();
}
--
1.7.7.3

--
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/