aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorAndreas Mohr <andi@lisas.de>2010-03-05 16:42:39 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2010-03-06 14:26:29 -0500
commit9a85b8d6049cbb0e7961df2069322fbc4192026a (patch)
treee9e397a35ea33f198da51027db028bf91a090b4d /init
parent87d5e0236d9d688fb575e9e12232764ac617617c (diff)
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 41d0f10dbbc7..b09a828f38b5 100644
--- a/init/main.c
+++ b/init/main.c
@@ -847,7 +847,8 @@ static noinline int init_post(void)
847 run_init_process("/bin/init"); 847 run_init_process("/bin/init");
848 run_init_process("/bin/sh"); 848 run_init_process("/bin/sh");
849 849
850 panic("No init found. Try passing init= option to kernel."); 850 panic("No init found. Try passing init= option to kernel. "
851 "See Linux Documentation/init.txt for guidance.");
851} 852}
852 853
853static int __init kernel_init(void * unused) 854static int __init kernel_init(void * unused)