From b2c728b36983fe0da15da1f8b9ac6f28f0a60801 Mon Sep 17 00:00:00 2001 From: Kroese Date: Mon, 22 Jan 2024 13:51:09 +0100 Subject: [PATCH] Update install.sh --- src/install.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/install.sh b/src/install.sh index 8f4274d..9278aee 100644 --- a/src/install.sh +++ b/src/install.sh @@ -173,7 +173,7 @@ if [ ! -f "$DIR/$ETFS" ] || [ ! -f "$DIR/$EFISYS" ]; then else warn "failed to locate file 'efisys_noprompt.bin' in ISO image, $FB" fi - # Mark ISO as prepared + # Mark ISO as prepared via magic byte printf '\x16' | dd of=$ISO bs=1 seek=0 count=1 conv=notrunc > /dev/null [[ "$ISO" != "$STORAGE/$BASE" ]] && mv -f "$ISO" "$STORAGE/$BASE" rm -rf "$TMP" @@ -325,11 +325,10 @@ info "$MSG" && html "$MSG" genisoimage -b "$ETFS" -no-emul-boot -c "$CAT" -iso-level 4 -J -l -D -N -joliet-long -relaxed-filenames -quiet -V "$LABEL" -udf \ -boot-info-table -eltorito-alt-boot -eltorito-boot "$EFISYS" -no-emul-boot -o "$OUT" -allow-limited-size "$DIR" -[ -n "$CUSTOM" ] && rm -f "$STORAGE/$CUSTOM" - -# Mark ISO as prepared +# Mark ISO as prepared via magic byte printf '\x16' | dd of=$OUT bs=1 seek=0 count=1 conv=notrunc > /dev/null +[ -n "$CUSTOM" ] && rm -f "$STORAGE/$CUSTOM" mv "$OUT" "$STORAGE/$BASE" rm -rf "$TMP"