feat: Store installation type (#477)

This commit is contained in:
Kroese 2024-05-09 15:59:06 +02:00 committed by GitHub
parent 3b7e2373f7
commit 5a000c1f9e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -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