feat: Add VirtIO GPU device

This commit is contained in:
Kroese 2024-02-06 23:06:01 +01:00 committed by GitHub
parent 44df1ce3b8
commit d3e3cebd93
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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