Refactor -display configuration build

This commit is contained in:
Martin Wimpress 2020-03-20 20:37:11 +00:00
parent 8bacffc65b
commit b9e6558bd6
No known key found for this signature in database
GPG key ID: 61DF940515E06DA3

View file

@ -165,11 +165,7 @@ function vm_boot() {
ram="3G" ram="3G"
fi fi
echo " - RAM: ${ram}" echo " - RAM: ${ram}"
# Determine what display to use
local display="-display ${UI},gl=${GL}"
echo " - UI: ${UI}" echo " - UI: ${UI}"
echo " - GL: ${GL}"
echo " - VIRGL: ${VIRGL}" echo " - VIRGL: ${VIRGL}"
local xres=1152 local xres=1152
@ -235,7 +231,7 @@ function vm_boot() {
-object rng-random,id=rng0,filename=/dev/urandom \ -object rng-random,id=rng0,filename=/dev/urandom \
-device virtio-rng-pci,rng=rng0 \ -device virtio-rng-pci,rng=rng0 \
-device virtio-vga,virgl=${VIRGL},xres=${xres},yres=${yres} \ -device virtio-vga,virgl=${VIRGL},xres=${xres},yres=${yres} \
${display} ${STATUSQUO}\ -display ${UI},gl=${GL} ${STATUSQUO} \
"$@" "$@"
} }