Control PXE tarball builds with Makefile

This commit is contained in:
Michael Aldridge
2017-08-27 20:10:38 -07:00
parent 89e3affa22
commit fc80523768
4 changed files with 17 additions and 6 deletions

View File

@@ -211,10 +211,10 @@ sed -i -e "s|@@SPLASHIMAGE@@|$(basename "${SPLASH_IMAGE}")|" \
"$PXELINUX_DIR/default"
# Default output file format
OUTPUT_FILE="void-netboot-${XBPS_TARGET_ARCH}-${KERNELVERSION}-$(date +%Y%m%d)"
info_msg "Compressing results to $OUTPUT_FILE.tar.gz"
OUTPUT_FILE="void-${XBPS_TARGET_ARCH}-NETBOOT-$(date +%Y%m%d).tar.gz"
info_msg "Compressing results to $OUTPUT_FILE"
cd "$BOOT_DIR" || die "Could not enter image dir"
tar -zcvf "$CURDIR/$OUTPUT_FILE.tar.gz" .
tar -zcvf "$CURDIR/$OUTPUT_FILE" .
cd "$CURDIR" || die "Could not return to working directory"
# As a final cleanup step, remove the ROOTFS and the expanded BOOT_DIR