diff --git a/src/display.sh b/src/display.sh index abe7509..ecfb4e4 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="ramfb" -else +if [[ "${BOOT_MODE,,}" != "windows" ]]; then [ -z "$VGA" ] && VGA="virtio-gpu" +else + [ -z "$VGA" ] && VGA="ramfb -device virtio-gpu" fi case "${DISPLAY,,}" in