Update boot.sh

This commit is contained in:
Kroese 2024-06-14 02:40:15 +02:00 committed by GitHub
parent b8516d034b
commit 25e3626167
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,23 +3,24 @@ set -Eeuo pipefail
# Docker environment variables
: "${BIOS:=""}" # BIOS file
: "${BOOT_MODE:="legacy"}" # Boot mode
SECURE="off"
BOOT_OPTS=""
BOOT_DESC=""
if [ -n "$BIOS" ]; then
BOOT_MODE="custom"
BOOT_OPTS="-bios $BIOS"
BOOT_DESC=" with custom BIOS file"
return 0
fi
case "${BOOT_MODE,,}" in
"legacy" )
BOOT_OPTS=""
BOOT_DESC=" with SeaBIOS"
;;
"uefi" )
BOOT_DESC=" with OVMF"
"uefi" | "" )
BOOT_MODE="uefi"
ROM="AAVMF_CODE.no-secboot.fd"
VARS="AAVMF_VARS.fd"
;;