Created
March 4, 2019 07:18
-
-
Save catvec/f6f9ecc933798b5084b62496dac4b02f to your computer and use it in GitHub Desktop.
mklive.sh -o fix patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/mklive.sh.in b/mklive.sh.in | |
index c568e45..4dfd36a 100644 | |
--- a/mklive.sh.in | |
+++ b/mklive.sh.in | |
@@ -287,7 +287,7 @@ generate_iso_image() { | |
-no-emul-boot -boot-load-size 4 -boot-info-table \ | |
-eltorito-alt-boot -e boot/grub/efiboot.img -isohybrid-gpt-basdat -no-emul-boot \ | |
-isohybrid-mbr "$SYSLINUX_DATADIR"/isohdpfx.bin \ | |
- -output "$CURDIR/$OUTPUT_FILE" "$IMAGEDIR" || die "Failed to generate ISO image" | |
+ -output "$OUTPUT_FILE" "$IMAGEDIR" || die "Failed to generate ISO image" | |
} | |
# | |
@@ -340,9 +340,6 @@ if [ "$(id -u)" -ne 0 ]; then | |
die "Must be run as root, exiting..." | |
fi | |
-readonly CURDIR="$PWD" | |
- | |
- | |
if [ -n "$ROOTDIR" ]; then | |
BUILDDIR=$(mktemp --tmpdir="$ROOTDIR" -d) | |
else | |
@@ -417,7 +414,7 @@ generate_squashfs | |
print_step "Generating ISO image..." | |
generate_iso_image | |
-hsize=$(du -sh "$CURDIR/$OUTPUT_FILE"|awk '{print $1}') | |
-info_msg "Created $(readlink -f "$CURDIR"/"$OUTPUT_FILE") ($hsize) successfully." | |
+hsize=$(du -sh "$OUTPUT_FILE"|awk '{print $1}') | |
+info_msg "Created $(readlink -f "$OUTPUT_FILE") ($hsize) successfully." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment