Re: [RFC][Patch] Allow not mounting a root fs

From: Rob Landley
Date: Wed Jul 18 2007 - 18:41:14 EST


On Saturday 07 July 2007 5:17:31 pm H. Peter Anvin wrote:
> Jan Engelhardt wrote:
> > On Jul 7 2007 13:56, H. Peter Anvin wrote:
> >> Jan Engelhardt wrote:
> >>> On Jul 5 2007 19:08, H. Peter Anvin wrote:
> >>>>> BTW: Is it possible to mount a tmpfs on / before extracting the cpio?
> >>>>
> >>>> Not in the stock kernel. There have been some patches floating around
> >>>> for that, I think.
> >>>
> >>> What would it buy? rootfs is a tmpfs, is not it?
> >>
> >> No, rootfs is ramfs.
> >
> > Thanks for clarifying. Well, why is it a ramfs, and not tmpfs?
> > (I think I know the difference, but the question stands.
> > A system without any swap somewhat equals a ramfs, or?)
>
> It gets initialized very early, and a lot of the setup needed for tmpfs
> to work isn't ready yet.

Out of curiosity, do you know which setup? I know that it won't actually swap
anything out yet because no swap is mounted, but I thought that mounting
tmpfs and doing a swapon afterwards was ok...

> -hpa

Rob
--
"One of my most productive days was throwing away 1000 lines of code."
- Ken Thompson.
-
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/