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

2007-07-18 Thread Roland M. Kruggel
-- cu Roland Kruggel  mailto: rk.liste at bbf7.de System: Intel, Debian etch, 2.6.16.16, xfce4 KDE 3.5 Test vom script... - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/major

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

2007-07-18 Thread H. Peter Anvin
Rob Landley wrote: > > 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... > Nope, I just know that the "obvious" way to do it crashes the ke

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

2007-07-18 Thread Rob Landley
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? > > No

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

2007-07-10 Thread Al Boldi
H. Peter Anvin wrote: > Al Boldi wrote: > > Try this "[PATCH] initramfs: Allow rootfs to use tmpfs instead of > > ramfs". > > > > It's trivial and should be in mainline. > > Simple, yes, trivial, no. > > It should be pushed to -mm before mainline to give it some smokeout time. Great, maybe somebod

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

2007-07-10 Thread H. Peter Anvin
Al Boldi wrote: > > Try this "[PATCH] initramfs: Allow rootfs to use tmpfs instead of ramfs". > > It's trivial and should be in mainline. > Simple, yes, trivial, no. It should be pushed to -mm before mainline to give it some smokeout time. -hpa - To unsubscribe from this list: send th

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

2007-07-08 Thread Al Boldi
Bodo Eggert wrote: > On Sat, 7 Jul 2007, 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. > > >

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

2007-07-07 Thread Willy Tarreau
On Sat, Jul 07, 2007 at 11:18:59PM +0200, Bodo Eggert wrote: > On Sat, 7 Jul 2007, 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 f

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

2007-07-07 Thread H. Peter Anvin
Jan Engelhardt wrote: > > Come to speak of it, I think you can have it much easier by having the kernel > exporting the cpio image as a virtual file inside rootfs, so that you could > re-extract it inside a tmpfs. In other words: > > mount -t tmpfs tmpfs /mnt; > cd /mnt; > cpio -diuv # > # switc

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

2007-07-07 Thread Jan Engelhardt
On Jul 7 2007 23:18, Bodo Eggert 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? > >As far as I understa

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

2007-07-07 Thread Bodo Eggert
On Sat, 7 Jul 2007, 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

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

2007-07-07 Thread H. Peter Anvin
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

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

2007-07-07 Thread Jan Engelhardt
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 w

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

2007-07-07 Thread H. Peter Anvin
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, roo

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

2007-07-07 Thread Jan Engelhardt
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? Jan -- - To unsubscribe f

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

2007-07-06 Thread H. Peter Anvin
Andre Noll wrote: > On 17:00, Bodo Eggert wrote: > >> I've put the complete system into initrams, and I just want the kernel to >> run /sbin/init. > > Did you try to exec /sbin/init as the last thing in the init script > of your initramfs? That worked for me some time ago. > Just add a symlink:

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

2007-07-06 Thread Andre Noll
On 17:00, Bodo Eggert wrote: > I've put the complete system into initrams, and I just want the kernel to > run /sbin/init. Did you try to exec /sbin/init as the last thing in the init script of your initramfs? That worked for me some time ago. Andre -- The only person who always got his work do

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

2007-07-06 Thread Dan Aloni
On Fri, Jul 06, 2007 at 05:00:40PM +0200, Bodo Eggert wrote: > On Thu, 5 Jul 2007, H. Peter Anvin wrote: > > > Bodo Eggert wrote: > > > This patch adds the option to not mount another root filesystem > > > by specifying root=initramfs. > > > > Uhm, the kernel doesn't mount anything if you're usi

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

2007-07-06 Thread Bodo Eggert
On Thu, 5 Jul 2007, H. Peter Anvin wrote: > Bodo Eggert wrote: > > This patch adds the option to not mount another root filesystem > > by specifying root=initramfs. > > Uhm, the kernel doesn't mount anything if you're using an initramfs. Yes, instead it panics trying to mount the non-existing "

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

2007-07-05 Thread H. Peter Anvin
Bodo Eggert wrote: > This patch adds the option to not mount another root filesystem > by specifying root=initramfs. Uhm, the kernel doesn't mount anything if you're using an initramfs. > BTW: Is it possible to mount a tmpfs on / before extracting the cpio? Not in the stock kernel. There have

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

2007-07-05 Thread Bodo Eggert
This patch adds the option to not mount another root filesystem by specifying root=initramfs. TODO: Documentation --- BTW: Is it possible to mount a tmpfs on / before extracting the cpio? While I'm at it: In init/do_mounts.c, mount_root(void): ROOT_NFS: Is it desirable to use the floppy as a