fix: don't declare SPICE as local within configure_ports. close #1240

Functionality was split across several functions in
e29173a16d, so SPICE cannot be local
anymore as it is also referenced in vm_boot.
This commit is contained in:
Martin Joerg 2024-06-02 16:53:27 +02:00 committed by Martin Wimpress
parent 94035a5930
commit a7271034cf
1 changed files with 2 additions and 1 deletions

View File

@ -995,7 +995,7 @@ function configure_ports() {
fi
if [ "${display}" == "none" ] || [ "${display}" == "spice" ] || [ "${display}" == "spice-app" ]; then
local SPICE="disable-ticketing=on"
SPICE="disable-ticketing=on"
# gl=on can be use with 'spice' too, but only over local connections (not tcp ports)
if [ "${display}" == "spice-app" ]; then
SPICE+=",gl=${gl}"
@ -1124,6 +1124,7 @@ function vm_boot() {
MAC_DISK_DEV="${MAC_DISK_DEV:-ide-hd,bus=ahci.2}"
NET_DEVICE="${NET_DEVICE:-virtio-net}"
SOUND=""
SPICE=""
SMM="${SMM:-off}"
local TEMP_PORT=""
USB_HOST_PASSTHROUGH_CONTROLLER="qemu-xhci"