From: Andi Kleen <andi@firstfloor.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: "Michael A. Griffith" <grif@acm.org>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Please get this committed, _NOW_ (preferrably 5 years ago), thanks.
Date: Sun, 08 Nov 2009 20:49:39 +0100 [thread overview]
Message-ID: <871vk87q5o.fsf@basil.nowhere.org> (raw)
In-Reply-To: <20091108120008.GA21611@rhlx01.hs-esslingen.de> (Andreas Mohr's message of "Sun, 8 Nov 2009 13:00:08 +0100")
Andreas Mohr <andi@lisas.de> writes:
> boy am I angry about this...
Angry about yourself?
> --- linux-2.6.32-rc6/init/main.c.orig 2009-11-08 11:09:51.000000000 +0100
> +++ linux-2.6.32-rc6/init/main.c 2009-11-08 12:40:11.000000000 +0100
> @@ -846,7 +846,47 @@ 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 " __FILE__ " for guidance.");
That seems like the wrong approach. The kernel can actually distingush
many of these cases, so it could just tell the user about them directly.
> +/* ok, so you've got this pretty unintuitive message and are wondering
> + * what the H*** went wrong.
> + * Some high-level reasons for failure (listed roughly in order of execution)
> + * to load the init binary are:
> + * A) Unable to mount root FS
This the kernel knows so it could just say. In fact it's already
printed usually, but it could be printed again.
> + * B) init binary doesn't exist on rootfs
This is knows also.
> + * C) other requirements not met
No idea what that should be.
> + * D) binary exists but dependencies not available
I think you're refering to shared libraries here. This is actually not correct,
because if dynamic linking for init fails this will not result in this error message.
> + * E) binary cannot be loaded
This it also knows.
So please just fix the output.
-Andi
prev parent reply other threads:[~2009-11-08 19:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-08 12:00 [PATCH] Please get this committed, _NOW_ (preferrably 5 years ago), thanks Andreas Mohr
2009-11-08 14:25 ` Américo Wang
2009-11-08 14:45 ` Andreas Mohr
2009-11-08 15:11 ` Américo Wang
2009-11-08 15:30 ` Arnd Bergmann
2009-11-08 16:16 ` Andreas Mohr
2009-11-09 20:45 ` [PATCH] provide crucial explanations for the dreaded "No init found." boot failure Andreas Mohr
2009-11-08 19:49 ` Andi Kleen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871vk87q5o.fsf@basil.nowhere.org \
--to=andi@firstfloor.org \
--cc=grif@acm.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox