Update boot.sh
This commit is contained in:
parent
b8516d034b
commit
25e3626167
1 changed files with 5 additions and 4 deletions
|
|
@ -3,23 +3,24 @@ set -Eeuo pipefail
|
||||||
|
|
||||||
# Docker environment variables
|
# Docker environment variables
|
||||||
: "${BIOS:=""}" # BIOS file
|
: "${BIOS:=""}" # BIOS file
|
||||||
: "${BOOT_MODE:="legacy"}" # Boot mode
|
|
||||||
|
|
||||||
SECURE="off"
|
SECURE="off"
|
||||||
BOOT_OPTS=""
|
BOOT_OPTS=""
|
||||||
BOOT_DESC=""
|
BOOT_DESC=""
|
||||||
|
|
||||||
if [ -n "$BIOS" ]; then
|
if [ -n "$BIOS" ]; then
|
||||||
|
BOOT_MODE="custom"
|
||||||
BOOT_OPTS="-bios $BIOS"
|
BOOT_OPTS="-bios $BIOS"
|
||||||
|
BOOT_DESC=" with custom BIOS file"
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "${BOOT_MODE,,}" in
|
case "${BOOT_MODE,,}" in
|
||||||
"legacy" )
|
"legacy" )
|
||||||
BOOT_OPTS=""
|
BOOT_DESC=" with SeaBIOS"
|
||||||
;;
|
;;
|
||||||
"uefi" )
|
"uefi" | "" )
|
||||||
BOOT_DESC=" with OVMF"
|
BOOT_MODE="uefi"
|
||||||
ROM="AAVMF_CODE.no-secboot.fd"
|
ROM="AAVMF_CODE.no-secboot.fd"
|
||||||
VARS="AAVMF_VARS.fd"
|
VARS="AAVMF_VARS.fd"
|
||||||
;;
|
;;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue