From 4cdd13585d77ced74fa30c1300aa1f96c5d184b1 Mon Sep 17 00:00:00 2001 From: Kroese Date: Fri, 21 Nov 2025 12:33:10 +0100 Subject: [PATCH] fix: Continue booting when Fiano fails (#376) Add error handling for logo replacement in BIOS --- src/boot.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/boot.sh b/src/boot.sh index 48a324e..72036ae 100644 --- a/src/boot.sh +++ b/src/boot.sh @@ -48,7 +48,10 @@ if [ ! -s "$DEST.rom" ] || [ ! -f "$DEST.rom" ]; then 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\" !"