Re: initrd help -- umounts root after pivot_root

From: Bob Chiodini
Date: Mon Nov 03 2003 - 08:48:15 EST


On Fri, 2003-10-31 at 16:59, H. Peter Anvin wrote:
> From: H. Peter Anvin <hpa@xxxxxxxxx>
> MIME-Version: 1.0
> Content-Type: text/plain; charset=ISO-8859-1
> Content-Transfer-Encoding: 8bit
> X-Comment-To: Bob Chiodini <robert.chiodini-1@xxxxxxxxxxxx>
> Disclaimer: Not speaking for Transmeta in any way, shape, or form.
> Copyright: Copyright 2003 H. Peter Anvin - All Rights Reserved
>
> Followup to: <1067604362.5526.15.camel@xxxxxxxxxxxxxxxxxxx>
> By author: Bob Chiodini <robert.chiodini-1@xxxxxxxxxxxx>
> 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...

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/