[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4697D6EB.5020404@zytor.com>
Date: Fri, 13 Jul 2007 12:47:55 -0700
From: "H. Peter Anvin" <hpa@...or.com>
To: Bodo Eggert <7eggert@....de>
CC: linux-kernel@...r.kernel.org
Subject: Re: [PATCH 0/3][try 1] init: enable system-on-initramfs
Bodo Eggert wrote:
> I toyed with setting up a diskless system in initramfs. In the process, I
> came across some things:
>
> 1) There is no way to have the kernel not mount a filesystem,
> unless you use /init or rdinit=.
And? Just use rdinit=/sbin/init and no patch is needed.
> 2a) I figured if you prepared the root fs to contain a running system, you
> woud probably also set up a runnable system on it. Therefore I changed
> the default to boot from tmpfs if there was no /init nor a root= option.
> (If there is a /init, it will be executed as usural.)
>
> Unfortunately the way I do it, this will override the rdev setting, but
> that should be OK, since rdev is dead. Isn't it?
That's pretty hideous. There shouldn't be a need for doing that.
rdev, unfortunately, isn't dead -- it lives on in the form of
/proc/sys/kernel/real-root-dev, as I found out doing the klibc set.
-hpa
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists