mirror of
https://github.com/dockur/windows.git
synced 2024-11-21 15:53:19 +01:00
feat: Store installation type (#477)
This commit is contained in:
parent
3b7e2373f7
commit
5a000c1f9e
@ -107,9 +107,9 @@ finishInstall() {
|
||||
|
||||
if [ -w "$iso" ] && [[ "$aborted" != [Yy1]* ]]; then
|
||||
# Mark ISO as prepared via magic byte
|
||||
local byte="\x16"
|
||||
[[ "$MANUAL" == [Yy1]* ]] && byte="\x17"
|
||||
if ! printf "$byte" | dd of="$iso" bs=1 seek=0 count=1 conv=notrunc status=none; then
|
||||
local byte="16"
|
||||
[[ "$MANUAL" == [Yy1]* ]] && byte="17"
|
||||
if ! printf '%b' "\x$byte" | dd of="$iso" bs=1 seek=0 count=1 conv=notrunc status=none; then
|
||||
error "Failed to set magic byte in ISO file: $iso" && return 1
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user