Release new version 0.34.4
[grml-live.git] / scripts / generate_netboot_package.sh
index e788de3..f4e3d13 100755 (executable)
@@ -22,7 +22,7 @@ fi
 GRML_VERSION="$(awk '{print $1"_"$2}' ${CHROOT}/etc/grml_version)"
 
 if ! [ -r "${CHROOT}/usr/lib/syslinux/pxelinux.0" ] ; then
-  echo "Error: /usr/lib/syslinux/pxelinux.0 not found. Please install syslinux[-common." >&2
+  echo "Error: /usr/lib/syslinux/pxelinux.0 not found. Please install syslinux[-common]." >&2
   exit 1
 fi
 
@@ -34,12 +34,16 @@ cp "$CHROOT"/boot/vmlinuz-*    "$WORKING_DIR"/vmlinuz
 cp "$CHROOT"/boot/initrd.img-* "$WORKING_DIR"/initrd.img
 cp "$CHROOT"/usr/lib/syslinux/pxelinux.0 "${WORKING_DIR}/pxelinux.0"
 
+if [ -r "$CHROOT"/usr/lib/syslinux/modules/bios/ldlinux.c32 ] ; then
+  cp "$CHROOT"/usr/lib/syslinux/modules/bios/ldlinux.c32 "${WORKING_DIR}"/
+fi
+
 mkdir -p "${WORKING_DIR}/pxelinux.cfg"
 cat > "${WORKING_DIR}/pxelinux.cfg/default" << EOF
 default grml
 label grml
   kernel vmlinuz
-  append initrd=initrd.img root=/dev/nfs rw nfsroot=192.168.0.1:/live/image boot=live apm=power-off quiet nomce noprompt noeject vga=791 
+  append initrd=initrd.img root=/dev/nfs rw nfsroot=192.168.0.1:/live/image boot=live apm=power-off quiet nomce noprompt noeject vga=791 net.ifnames=0 
 EOF
 
 if tar -C "$OUTPUTDIR" -acf "${OUTPUT_FILE}" "grml_netboot_package_${GRML_VERSION}" ; then