From: Dan Aloni <da-x@monatomic.org>
To: Bodo Eggert <7eggert@gmx.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>, linux-kernel@vger.kernel.org
Subject: Re: [RFC][Patch] Allow not mounting a root fs
Date: Fri, 6 Jul 2007 18:32:32 +0300 [thread overview]
Message-ID: <20070706153232.GA11907@localdomain> (raw)
In-Reply-To: <Pine.LNX.4.58.0707061551240.2241@be1.lrz>
On Fri, Jul 06, 2007 at 05:00:40PM +0200, Bodo Eggert wrote:
> On Thu, 5 Jul 2007, H. Peter Anvin wrote:
>
> > Bodo Eggert wrote:
> > > This patch adds the option to not mount another root filesystem
> > > by specifying root=initramfs.
> >
> > Uhm, the kernel doesn't mount anything if you're using an initramfs.
>
> Yes, instead it panics trying to mount the non-existing "root=".
> I've put the complete system into initrams, and I just want the kernel to
> run /sbin/init.
If I understood you correctly, you're trying to get the kernel
to execute the "/sbin/init" file of your initramfs. However, "/init"
is the sole default initramfs entry point. To fix this, you can pass
rdinit=/sbin/init _or_ modify your initramfs image so that "/init"
is the entrypoint.
Normally, if your initramfs has a /init script your kernel would
skip the entire stage where it panics in the perpare_namespace()
function for trying to mount "root=" by itself (see
init/main.c:init()).
--
Dan Aloni
XIV LTD, http://www.xivstorage.com
da-x (at) monatomic.org, dan (at) xiv.co.il
next prev parent reply other threads:[~2007-07-06 15:32 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-06 2:00 [RFC][Patch] Allow not mounting a root fs Bodo Eggert
2007-07-06 2:08 ` H. Peter Anvin
2007-07-06 15:00 ` Bodo Eggert
2007-07-06 15:32 ` Dan Aloni [this message]
2007-07-06 17:00 ` Andre Noll
2007-07-06 17:16 ` H. Peter Anvin
2007-07-07 18:30 ` Jan Engelhardt
2007-07-07 20:56 ` H. Peter Anvin
2007-07-07 21:13 ` Jan Engelhardt
2007-07-07 21:17 ` H. Peter Anvin
2007-07-18 21:51 ` Rob Landley
2007-07-18 22:50 ` H. Peter Anvin
2007-07-18 22:53 ` Roland M. Kruggel
2007-07-07 21:18 ` Bodo Eggert
2007-07-07 21:39 ` Jan Engelhardt
2007-07-07 21:45 ` H. Peter Anvin
2007-07-07 21:46 ` Willy Tarreau
-- strict thread matches above, loose matches on Subject: below --
2007-07-08 10:36 Al Boldi
2007-07-11 0:46 ` H. Peter Anvin
2007-07-11 4:47 ` Al Boldi
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=20070706153232.GA11907@localdomain \
--to=da-x@monatomic.org \
--cc=7eggert@gmx.de \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.