diff --git a/src/display.sh b/src/display.sh index 0547776..c19d50d 100644 --- a/src/display.sh +++ b/src/display.sh @@ -3,9 +3,15 @@ set -Eeuo pipefail # Docker environment variables -: "${VGA:="ramfb"}" # VGA adaptor +: "${VGA:=""}" # VGA adaptor : "${DISPLAY:="web"}" # Display type +if [[ "${BOOT_MODE:-}" != "windows" ]]; then + [ -z "$VGA" ] && VGA="virtio-gpu" +else + [ -z "$VGA" ] && VGA="ramfb" +fi + case "${DISPLAY,,}" in vnc) DISPLAY_OPTS="-display vnc=:0 -device $VGA"