Hi, I have been trying to get booting a LiveCD via PXE to work and I wnated to report what I think is a bug in genkernels linuxrc script. My setup: I have a HP Laptop and a Gentoo server configured for DHCP, TFTP and NFS. I have with the following in my /tftproot/pxelinux.cfg/default file: DEFAULT /kernel append loop=/default root=/dev/ram0 init=/linuxrc looptype=squashfs doscsi doslowusb nonfs doapm nolvm initrd=/initramfs console=tty1 vga=0x317 ip=dhcp nfsroot=192.168.200.8:/tftproot/nfs cdroot=1 real_root=/dev/nfs I have the following files in my /tftproot directory: # find /tftproot /tftproot /tftproot/nfs /tftproot/nfs/default /tftproot/pxelinux.0 /tftproot/initramfs /tftproot/kernel /tftproot/pxelinux.cfg /tftproot/pxelinux.cfg/default Some of these files I have coppied from the LiveCD image: LiveCD/isolinux/gentoo -> /tftproot/kernel LiveCD/isolinux/gentoo.igz -> /tftproot/initramfs LiveCD/image.squashfs -> /tftproot/nfs/default To get this all to work correctly I need to make a change to the linuxrc file as it forgets to check for NFS usage at one vital point when mounting the SquashFS file. I have been using this tool to help unpack the initramfs: http://oliver.net.au/files/initrdextract.sh Anyway, I need to edit the following in the initramfs file: linuxrc # diff linuxrc /usr/share/genkernel/generic/linuxrc -u --- linuxrc 2008-11-14 16:50:37.000000000 +0000 +++ /usr/share/genkernel/generic/linuxrc 2008-11-14 01:07:35.000000000 +0000 @@ -404,7 +404,7 @@ # else not a good root and start over. if [ "$?" = '0' ] then - if [ -d ${NEW_ROOT}/dev -a -x ${NEW_ROOT}/sbin/init ] || [ "${REAL_ROOT}" = "/dev/nfs" ] + if [ -d ${NEW_ROOT}/dev -a -x ${NEW_ROOT}/sbin/init ] then break else This enables me to boot correctly the LiveCD image via NFS. This fix is applicable to sys-kernel/genkernel-3.4.10-r1 Reproducible: Always Steps to Reproduce:
Created attachment 171732 [details] a linuxrc diff file A Diff file with the files the correct way round this time :-)
This is fixed in git. Thanks.
Wow, that was quick ta :-)
*** Bug 236606 has been marked as a duplicate of this bug. ***
(In reply to comment #2) > This is fixed in git. Thanks. Due to the date of the last comment on this bug I assume that feature to be included in 3.4.10.907 or an earlier release of genkernel. Closing, please re-open as needed.