Unverified Commit e50d56d6 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

fix: Continue booting when Fiano fails (#981)

Add error handling for logo replacement in boot script
parent c454d6b7
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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\" !"