> This moment I have this:
 > exec nash /sbin/switch_root > /dev/null
 > switch_root file contains this line:
 > switchroot /filesystem
 > /filesystem is my aufs

I didn't follow the whole thread, so maybe I am wrong.
But I would like to point out something ...

The proposed method (exec chroot, etc) is used if you boot linux kernel 
with initrd image. In this case, initr image (a separate file) is loaded 
to memory and it becomes the root filesystem on /dev/ram0 after kernel 
starts.

But it seems to me like Fernando is using switch_root, which is used if 
you're using initramfs. Initramfs is something very different from 
initrd - it is not a standalone file, it is directly linked to vmlinuz 
kernel image, and moreover you can't use chroot in initramfs as 
initramfs requires much more complicated setup (handled by the 
switch_root tool I guess).

You may read more from Linux documentation:
linux-2.6.20/Documentation/filesystems/ramfs-rootfs-initramfs.txt

I'm afraid it will not help you with this problem, but it may make some 
things more clear as it seems to me like you both are talking about 
different setups.

As I said, maybe I am totally wrong as I didn't follow the whole thread. 
In this case I'm very sorry and I shut up :)


Tomas M
slax.org


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

Reply via email to