fix: Set first byte on processed ISOs

This commit is contained in:
Kroese 2024-01-22 12:45:32 +01:00 committed by GitHub
parent 853d48e3f5
commit 8dfc48ca41
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -162,6 +162,8 @@ 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
printf '\x16' | dd of=$OUT bs=1 seek=0 count=1 conv=notrunc > /dev/null
mv -f "$ISO" "$STORAGE/$BASE" mv -f "$ISO" "$STORAGE/$BASE"
rm -rf "$TMP" rm -rf "$TMP"
return 0 return 0
@ -304,6 +306,9 @@ genisoimage -b "$ETFS" -no-emul-boot -c "$CAT" -iso-level 4 -J -l -D -N -joliet-
[ -n "$CUSTOM" ] && rm -f "$STORAGE/$CUSTOM" [ -n "$CUSTOM" ] && rm -f "$STORAGE/$CUSTOM"
# Mark ISO as prepared
printf '\x16' | dd of=$OUT bs=1 seek=0 count=1 conv=notrunc > /dev/null
mv "$OUT" "$STORAGE/$BASE" mv "$OUT" "$STORAGE/$BASE"
rm -rf "$TMP" rm -rf "$TMP"