Skip to content

Commit

Permalink
Install netboot.cfg as pxelinux.cfg/default _file_
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Hofstaedtler committed Dec 19, 2011
1 parent 07dc676 commit 8966263
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions grml-live
Expand Up @@ -1379,15 +1379,13 @@ create_netbootpackage() {
cp "${CHROOT_OUTPUT}"/boot/initrd.img-* "$WORKING_DIR"/initrd.img
cp "${CHROOT_OUTPUT}"/usr/lib/syslinux/pxelinux.0 "${WORKING_DIR}/pxelinux.0"

mkdir -p "${WORKING_DIR}/pxelinux.cfg"
if [ -r "${BUILD_OUTPUT}/boot/isolinux/netboot.cfg" ] ; then
mkdir -p "${WORKING_DIR}/pxelinux.cfg/default"
cp "${BUILD_OUTPUT}/boot/isolinux/netboot.cfg" "${WORKING_DIR}/pxelinux.cfg/default"
else
ewarn "File ${BUILD_OUTPUT}/boot/isolinux/netboot.cfg not found." ; eend 0
fi

mkdir -p "${WORKING_DIR}/pxelinux.cfg"

if tar -C "$OUTPUTDIR" -jcf "${OUTPUT_FILE}" "grml_netboot_package_${GRML_NAME}_${VERSION}" ; then
sha1sum "${OUTPUT_FILE}" > "${OUTPUT_FILE}.sha1"
einfo "Generated netboot package ${OUTPUT_FILE}" ; eend 0
Expand Down

0 comments on commit 8966263

Please sign in to comment.