Re: [gentoo-user] initramfs, network diskless boot, init process, problems with switchroot (pivot_root)

2006-06-23 Thread Claudinei Matos
Well, too many replies, thank you all :)I could solve my problem using strace to detect where init stops (of course I had to recompile init allowing to not be PID 1). Looking at the errors reported on strace log I could see that the problem was with the /dev/null and /dev/console doesn't exists so

Re: [gentoo-user] initramfs, network diskless boot, init process, problems with switchroot (pivot_root)

2006-06-21 Thread Richard Fish
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

Re: [gentoo-user] initramfs, network diskless boot, init process, problems with switchroot (pivot_root)

2006-06-21 Thread Hans-Werner Hilse
Hi, On Wed, 21 Jun 2006 13:50:12 -0700 Richard Fish [EMAIL PROTECTED] wrote: 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

Re: [gentoo-user] initramfs, network diskless boot, init process, problems with switchroot (pivot_root)

2006-06-21 Thread Richard Fish
On 6/21/06, Hans-Werner Hilse [EMAIL PROTECTED] wrote: On Wed, 21 Jun 2006 13:50:12 -0700 Hm, I'm pretty sure that it is well possible to pivot_root from an initramfs. Isn't that the whole point of pivot_root? But you may be right that it is not possible for NFS mounts, I never tried that

Re: [gentoo-user] initramfs, network diskless boot, init process, problems with switchroot (pivot_root)

2006-06-21 Thread Richard Fish
On 6/21/06, Richard Fish [EMAIL PROTECTED] wrote: http://bugzilla.kernel.org/show_bug.cgi?id=4857 My final comments on that bug are based on the attached email -1,000,000 points for not including the email... -Richard From - Thu Aug 18 13:01:31 2005 X-Account-Key: account1 X-UIDL:

Re: [gentoo-user] initramfs, network diskless boot, init process, problems with switchroot (pivot_root)

2006-06-21 Thread Hans-Werner Hilse
Hi, On Wed, 21 Jun 2006 15:51:51 -0700 Richard Fish [EMAIL PROTECTED] wrote: My final comments on that bug are based on the attached email that I received from Andrew Morton that made it clear that Al Viro was opposed to pivot_root being used from an initramfs. (BTW, viro's comments are not

Re: [gentoo-user] initramfs, network diskless boot, init process, problems with switchroot (pivot_root)

2006-06-21 Thread Richard Fish
On 6/21/06, Hans-Werner Hilse [EMAIL PROTECTED] wrote: chroot. OK, I definately stand currected. But I was pretty sure I once did this from initramfs. But that was admittedly back in the 2.6.10 days, I think. Yeah, I did it too! ;- Worked great until I tried to use fbsplash/bootsplash, which

[gentoo-user] initramfs, network diskless boot, init process, problems with switchroot (pivot_root)

2006-06-16 Thread Claudinei Matos
Hi guys,I'm not sure if it's the best place to do this question but I hope somebody could help me...well, I'm trying to make such a network diskless boot script for a amd64 machine, the target of this project is to boot an amd64 machine via network and mount nfs share as the root filesystem. I'd