rescue CD bug report (and idea for a fix) for PXE/network boot and no DNS name resolution
This is a bug report for the rescue CD. I use a custom PXE setup to netboot the live CD. DNS name resolution does not work and I believe I know why.
cat /proc/cmdline
BOOT_IMAGE=bitdefender/kernel.i386-pc root=/dev/nfs real_root=/dev/nfs nfsroot=192.168.1.1:/srv/nfs/bitdefender/ ip=dhcp loop=/rescue/livecd.squashfs looptype=squashfs initrd udev cdroot lang=de livecd.nfsif=08:00:de:ad:be:ef initrd=bitdefender/initfs.i386-pc
at the login screen on the first console (CTRL+ALT+F1), I see the following error message complaining about dhcpcd not being found:
/etc/init.d/livecd-setup: Zeile 101: dhcpcd: Kommando nicht gefunden.
/etc/init.d/livecd-setup: Zeile 102: dhcpcd: Kommando nicht gefunden.
There is a file called /etc/init.d/livecd-setup. It contains the following lines:
if [ ! "x${NFSIFNAME}" = "x" ]
then
dhcpcd -gnp "${NFSIFNAME}"
dhcpcd -x "${NFSIFNAME}"
fi
However the file dhcpcd is not shipped with the live cd
user@server:/srv/nfs/bitdefender/rescue $ unsquashfs -l livecd.squashfs | grep dhcpcd
squashfs-root/lib/netifrc/net/dhcpcd.sh
... and that is why name resolution does not work for me.
This fixed it:
sudo dhclient eth0
0
This discussion has been closed.