aboutsummaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorAndreas Mohr <andi@lisas.de>2010-03-05 13:42:39 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2010-03-06 11:26:29 -0800
commit9a85b8d6049cbb0e7961df2069322fbc4192026a (patch)
treee9e397a35ea33f198da51027db028bf91a090b4d /init
parent87d5e0236d9d688fb575e9e12232764ac617617c (diff)
downloadlinux-linaro-android-9a85b8d6049cbb0e7961df2069322fbc4192026a.tar.gz
init/main.c: improve usability in case of init binary failure
- new Documentation/init.txt file describing various forms of failure trying to load the init binary after kernel bootup - extend the init/main.c init failure message to direct to Documentation/init.txt Signed-off-by: Andreas Mohr <andi@lisas.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'init')
-rw-r--r--init/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/init/main.c b/init/main.c
index 41d0f10dbbc..b09a828f38b 100644
--- a/init/main.c
+++ b/init/main.c
@@ -847,7 +847,8 @@ static noinline int init_post(void)
run_init_process("/bin/init");
run_init_process("/bin/sh");
- panic("No init found. Try passing init= option to kernel.");
+ panic("No init found. Try passing init= option to kernel. "
+ "See Linux Documentation/init.txt for guidance.");
}
static int __init kernel_init(void * unused)