mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 03:15:49 +00:00
fix: Set first byte on processed ISOs
This commit is contained in:
parent
853d48e3f5
commit
8dfc48ca41
1 changed files with 5 additions and 0 deletions
|
|
@ -162,6 +162,8 @@ 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
|
||||
printf '\x16' | dd of=$OUT bs=1 seek=0 count=1 conv=notrunc > /dev/null
|
||||
mv -f "$ISO" "$STORAGE/$BASE"
|
||||
rm -rf "$TMP"
|
||||
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"
|
||||
|
||||
# Mark ISO as prepared
|
||||
printf '\x16' | dd of=$OUT bs=1 seek=0 count=1 conv=notrunc > /dev/null
|
||||
|
||||
mv "$OUT" "$STORAGE/$BASE"
|
||||
rm -rf "$TMP"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue