[PATCH] init: Warn on non-existent rdinit

Richard Weinberger
2012-01-05T18:57:13Z

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

Signed-off-by: Richard Weinberger <richard@nod.at>
---
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