Update boot.sh

This commit is contained in:
Kroese 2024-06-05 17:41:40 +02:00 committed by GitHub
parent ee02a0b089
commit 66ffef4594
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -40,7 +40,7 @@ esac
if [ -n "$BIOS" ]; then
BOOT_OPTS="$BOOT_OPTS -bios $DIR/$BIOS"
BOOT_OPTS+=" -bios $DIR/$BIOS"
return 0
fi
@ -62,7 +62,7 @@ if [ ! -s "$DEST.vars" ] || [ ! -f "$DEST.vars" ]; then
dd "if=$AAVMF/$VARS" "of=$DEST.vars" conv=notrunc status=none
fi
BOOT_OPTS="$BOOT_OPTS -drive file=$DEST.rom,if=pflash,unit=0,format=raw,readonly=on"
BOOT_OPTS="$BOOT_OPTS -drive file=$DEST.vars,if=pflash,unit=1,format=raw"
BOOT_OPTS+=" -drive file=$DEST.rom,if=pflash,unit=0,format=raw,readonly=on"
BOOT_OPTS+=" -drive file=$DEST.vars,if=pflash,unit=1,format=raw"
return 0