mirror of
https://github.com/dockur/windows.git
synced 2024-11-22 00:03:24 +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
|
if [ -w "$iso" ] && [[ "$aborted" != [Yy1]* ]]; then
|
||||||
# Mark ISO as prepared via magic byte
|
# Mark ISO as prepared via magic byte
|
||||||
local byte="\x16"
|
local byte="16"
|
||||||
[[ "$MANUAL" == [Yy1]* ]] && byte="\x17"
|
[[ "$MANUAL" == [Yy1]* ]] && byte="17"
|
||||||
if ! printf "$byte" | dd of="$iso" bs=1 seek=0 count=1 conv=notrunc status=none; then
|
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
|
error "Failed to set magic byte in ISO file: $iso" && return 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user