On 6/16/06, Claudinei Matos <[EMAIL PROTECTED]> wrote:
I'd created an initramfs wich mount the nfs share and do the pivot_root (actually switch_root from busybox) but the problem is exactly at this moment, 'cause when I try to do the switch_root and start the real init from the nfs share, the system appears to freeze but after some seconds it do print a message "Rebooting System" and just reboot the machine.
Sorry for the late reply...I've been on offline (vacation) for several days. pivot_root is specifically *not* allowed from an initramfs environment. What you want to do is simply mount the new root filesystem, chroot into it, and execute init. Something like: cd /new_root ; exec ./bin/chroot . ./sbin/init "$@" >dev/console <dev/console 2>&1 If you are *extremely* tricky, and use a symlinked /lib directory, you can actually delete everything from the initramfs before doing the chroot/init calls. Let me know if you need some more details on this. HTH, -Richard -- [email protected] mailing list

