mirror of
https://github.com/qemus/qemu-docker.git
synced 2025-12-24 13:38:05 +08:00
fix: Continue booting when Fiano fails (#981)
Add error handling for logo replacement in boot script
This commit is contained in:
@@ -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\" !"
|
||||
|
||||
Reference in New Issue
Block a user