diff --git a/src/display.sh b/src/display.sh index c19d50d..e5594b6 100644 --- a/src/display.sh +++ b/src/display.sh @@ -6,10 +6,10 @@ set -Eeuo pipefail : "${VGA:=""}" # VGA adaptor : "${DISPLAY:="web"}" # Display type -if [[ "${BOOT_MODE:-}" != "windows" ]]; then - [ -z "$VGA" ] && VGA="virtio-gpu" -else +if [[ "${BOOT_MODE:-}" == "windows"* ]]; then [ -z "$VGA" ] && VGA="ramfb" +else + [ -z "$VGA" ] && VGA="virtio-gpu" fi case "${DISPLAY,,}" in