Update boot.sh

This commit is contained in:
Kroese 2024-02-02 16:23:14 +01:00 committed by GitHub
parent a85c2e186e
commit f0426bcc64
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,9 +2,9 @@
set -Eeuo pipefail
# Docker environment variables
: "${TPM:="Y"}" # Enable TPM
: "${BIOS:=""}" # Bios file
: "${BOOT_MODE:="uefi"}" # Boot mode
: "${TPM:="Y"}" # Enable TPM
: "${BIOS:=""}" # Bios file
: "${BOOT_MODE:="uefi"}" # Boot mode
SECURE=""
DIR="/usr/share/qemu"
@ -27,15 +27,15 @@ case "${BOOT_MODE,,}" in
info "Unknown boot mode '${BOOT_MODE}', defaulting to 'uefi'"
BOOT_MODE="uefi"
ROM="AAVMF_CODE.fd"
VARS="AAVMF_VARS.fd"
VARS="AAVMF_VARS.fd"
;;
esac
if [ -n "$BIOS"]; then
if [ -n "$BIOS" ]; then
BOOT_OPTS="$BOOT_OPTS -bios $DIR/$BIOS"
return 0
fi
AAVMF="/usr/share/AAVMF/"