fix: Continue booting when Fiano fails (#981)

Add error handling for logo replacement in boot script
This commit is contained in:
Kroese
2025-11-21 12:25:56 +01:00
committed by GitHub
parent c454d6b73a
commit e50d56d6f4

View File

@@ -76,7 +76,10 @@ case "${BOOT_MODE,,}" in
if [[ "${LOGO:-}" == [Nn]* ]]; then
cp "$OVMF/$ROM" "$DEST.tmp"
else
/run/utk.bin "$OVMF/$ROM" replace_ffs LogoDXE "/var/www/img/${PROCESS,,}.ffs" save "$DEST.tmp"
if ! /run/utk.bin "$OVMF/$ROM" replace_ffs LogoDXE "/var/www/img/${PROCESS,,}.ffs" save "$DEST.tmp"; then
warn "failed to add custom logo to BIOS!"
cp "$OVMF/$ROM" "$DEST.tmp"
fi
fi
mv "$DEST.tmp" "$DEST.rom"
! setOwner "$DEST.rom" && error "Failed to set the owner for \"$DEST.rom\" !"