login
Header Space

 
 

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

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Bodo Eggert <7eggert@...>
Cc: H. Peter Anvin <hpa@...>, <linux-kernel@...>
Date: Saturday, July 7, 2007 - 5:39 pm

On Jul 7 2007 23:18, Bodo Eggert 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 </initramfs.cpio;
#
# switch_root nukes rootfs, pivot_roots and execs some init
klibc_switch_root .; # or something like that

Of course this needs double the memory than directly mounting tmpfs as 
rootfs, but it's an idea too.


	Jan
-- 
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC][Patch] Allow not mounting a root fs, Bodo Eggert, (Thu Jul 5, 10:00 pm)
Re: [RFC][Patch] Allow not mounting a root fs, H. Peter Anvin, (Thu Jul 5, 10:08 pm)
Re: [RFC][Patch] Allow not mounting a root fs, Jan Engelhardt, (Sat Jul 7, 2:30 pm)
Re: [RFC][Patch] Allow not mounting a root fs, Bodo Eggert, (Sat Jul 7, 5:18 pm)
Re: [RFC][Patch] Allow not mounting a root fs, Willy Tarreau, (Sat Jul 7, 5:46 pm)
Re: [RFC][Patch] Allow not mounting a root fs, Jan Engelhardt, (Sat Jul 7, 5:39 pm)
Re: [RFC][Patch] Allow not mounting a root fs, H. Peter Anvin, (Sat Jul 7, 5:45 pm)
Re: [RFC][Patch] Allow not mounting a root fs, H. Peter Anvin, (Sat Jul 7, 4:56 pm)
Re: [RFC][Patch] Allow not mounting a root fs, Jan Engelhardt, (Sat Jul 7, 5:13 pm)
Re: [RFC][Patch] Allow not mounting a root fs, H. Peter Anvin, (Sat Jul 7, 5:17 pm)
Re: [RFC][Patch] Allow not mounting a root fs, Rob Landley, (Wed Jul 18, 5:51 pm)
Re: [RFC][Patch] Allow not mounting a root fs, H. Peter Anvin, (Wed Jul 18, 6:50 pm)
Re: [RFC][Patch] Allow not mounting a root fs, Roland M. Kruggel, (Wed Jul 18, 6:53 pm)
Re: [RFC][Patch] Allow not mounting a root fs, Bodo Eggert, (Fri Jul 6, 11:00 am)
Re: [RFC][Patch] Allow not mounting a root fs, Andre Noll, (Fri Jul 6, 1:00 pm)
Re: [RFC][Patch] Allow not mounting a root fs, H. Peter Anvin, (Fri Jul 6, 1:16 pm)
Re: [RFC][Patch] Allow not mounting a root fs, Dan Aloni, (Fri Jul 6, 11:32 am)
speck-geostationary