From 8f4eea252f5d2465629da3949cc9dc11e9910572 Mon Sep 17 00:00:00 2001 From: Kroese Date: Fri, 2 Feb 2024 18:44:26 +0100 Subject: [PATCH] Update display.sh --- src/display.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/display.sh b/src/display.sh index e60951d..dabcaa9 100644 --- a/src/display.sh +++ b/src/display.sh @@ -6,6 +6,10 @@ set -Eeuo pipefail : "${DISPLAY:="web"}" # Display type : "${VGA:="virtio-gpu"}" # VGA adaptor +if [[ "${BOOT_MODE,,}" == "windows" ]]; then + [[ "$VGA"" == "virtio-gpu" ]] && VGA="VGA" +fi + case "${DISPLAY,,}" in vnc) DISPLAY_OPTS="-display vnc=:0 -device $VGA"