fix: Check returnvalue

This commit is contained in:
Kroese 2024-04-22 12:12:09 +02:00 committed by GitHub
parent 72647f496f
commit 566ea4cb61
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -258,7 +258,9 @@ finishInstall() {
local aborted="$2"
# Mark ISO as prepared via magic byte
printf '\x16' | dd of="$iso" bs=1 seek=0 count=1 conv=notrunc status=none
if ! printf '\x16' | dd of="$iso" bs=1 seek=0 count=1 conv=notrunc status=none; then
error "Failed to set magic byte!"
fi
rm -f "$STORAGE/windows.boot"
cp /run/version "$STORAGE/windows.ver"