[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1325789819-30502-1-git-send-email-richard@nod.at>
Date: Thu, 5 Jan 2012 19:56:59 +0100
From: Richard Weinberger <richard@....at>
To: linux-kernel@...r.kernel.org
Cc: akpm@...ux-foundation.org, a.p.zijlstra@...llo.nl, mingo@...e.hu,
xiyou.wangcong@...il.com, ebiederm@...ssion.com,
Richard Weinberger <richard@....at>
Subject: [PATCH] init: Warn on non-existent rdinit
Such a warning would have saved me some time...
Hopefully this printk() saves someone else's time. :-)
Signed-off-by: Richard Weinberger <richard@....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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists