Update install.sh

This commit is contained in:
Kroese 2024-01-22 13:51:09 +01:00 committed by GitHub
parent 198a55e0d0
commit b2c728b369
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -173,7 +173,7 @@ if [ ! -f "$DIR/$ETFS" ] || [ ! -f "$DIR/$EFISYS" ]; then
else else
warn "failed to locate file 'efisys_noprompt.bin' in ISO image, $FB" warn "failed to locate file 'efisys_noprompt.bin' in ISO image, $FB"
fi 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 printf '\x16' | dd of=$ISO bs=1 seek=0 count=1 conv=notrunc > /dev/null
[[ "$ISO" != "$STORAGE/$BASE" ]] && mv -f "$ISO" "$STORAGE/$BASE" [[ "$ISO" != "$STORAGE/$BASE" ]] && mv -f "$ISO" "$STORAGE/$BASE"
rm -rf "$TMP" 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 \ 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" -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 via magic byte
# Mark ISO as prepared
printf '\x16' | dd of=$OUT bs=1 seek=0 count=1 conv=notrunc > /dev/null 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" mv "$OUT" "$STORAGE/$BASE"
rm -rf "$TMP" rm -rf "$TMP"