lkml.org 
[lkml]   [2012]   [Jan]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] init: Warn on non-existent rdinit
Date
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


\
 
 \ /
  Last update: 2012-01-05 19:59    [W:0.054 / U:0.872 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site