I need to make a emergency PXE bootloader for a LIVECD (not the ubuntu netboot small cd, but rather a desktop livecd to boot from the command line). Will this work:
# Create a cpio archive of just the ISO and append it to the initrd image.
( echo "ubuntu-13.10-desktop-amd64.iso" | cpio -H newc --quiet -o ) | gzip -9 | cat ubuntu-13.10-desktop-amd64.iso_EXTRACTED/casper/initrd0.img - > tftpboot/initrd0.img
# Kernel image.
cp ubuntu-13.10-desktop-amd64.iso_EXTRACTED/isolinux/vmlinuz0 tftpboot/vmlinuz0
# pxelinux bootloader part:
LABEL pxeboot
KERNEL vmlinuz0
APPEND initrd=initrd0.img root=/ubuntu-13.10-desktop-amd64.iso rootfstype=iso9660 rootflags=loop
ONERROR LOCALBOOT 0
What am i doing wrong?