Re: [PATCH] use tmpfs for rootfs

From: Bodo Eggert
Date: Thu Oct 16 2008 - 13:32:59 EST


On Thu, 16 Oct 2008, Geert Uytterhoeven wrote:
> On Thu, 16 Oct 2008, Bodo Eggert wrote:

> > +config TMPFS_ROOT
> > + bool "Use tmpfs instrad of ramfs for initramfs"
> > + depends on TMPFS && SHMEM
> > + default n
> > + help
> > + This replaces the ramfs used for unpacking the cpio images
> > + with tmpfs.
> > +
> > + If unsure, say N
> > +
> > +config RAMFS
> > + bool "Ramfs file system support" if TMPFS_ROOT
> > + default y
> > + ---help---
> > + Ramfs is a file system which keeps all files in RAM. Unlike tmpfs,
> > + it cannot be swapped to disk, and it has the risk of deadlocking
> > + the system by using all memory.
> > +
> > + Ramfs is used for booting the system and unpacking the cpio if
> > + TMPFS_ROOT is not set.
>
> Something seems to be missing, as you add CONFIG_RAMFS, but it's nowhere used?
>
> Gr{oetje,eeting}s,

Yes. I managed to edit the wrong Makefile. Since there seems no way of
sensibly appending a patch to a mail, I'll reply with the corrected patch.
--
Never stand when you can sit, never sit when you can lie down, never stay
awake when you can sleep.
--
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/