2003-11-03 13:47:07

by Bob Chiodini

[permalink] [raw]
Subject: Re: initrd help -- umounts root after pivot_root

On Fri, 2003-10-31 at 16:59, H. Peter Anvin wrote:
> From: H. Peter Anvin <[email protected]>
> MIME-Version: 1.0
> Content-Type: text/plain; charset=ISO-8859-1
> Content-Transfer-Encoding: 8bit
> X-Comment-To: Bob Chiodini <[email protected]>
> Disclaimer: Not speaking for Transmeta in any way, shape, or form.
> Copyright: Copyright 2003 H. Peter Anvin - All Rights Reserved
>
> Followup to: <[email protected]>
> By author: Bob Chiodini <[email protected]>
> In newsgroup: linux.dev.kernel
> >
> > John,
> >
> > It does not appear that the kernel(s) will support the root fs on
> > tmpfs. Looking through the init kernel code: It boils down to a block
> > device with real major and minor number or NFS.
> >
>
> Baloney. See the SuperRescue CD, for example, for a distro which uses
> exactly this.
>
> -hpa

I stand corrected. I should have been clearer making this statement. I
did not see a mechanism for mounting a tmpfs in do_mounts.c, or main.c.
One question: I see that superrescue execs init and the end of
linuxrc. Does this cause the kernel initialization to yield in
handle_initrd(), until init exits (reboot/shutdown)?

Bob...