qemu: fix --display none (MR 2252)

Don't specify the virtio vga device with --display none is set.

Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
Caleb Connolly 2024-06-16 19:28:54 +02:00 committed by Oliver Smith
parent 0857f1aa4e
commit 883ab8311e
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -207,7 +207,8 @@ def command_qemu(args: PmbArgs, config: Config, arch: Arch, img_path, img_path_2
command += ["-device", "virtio-net-pci,netdev=net"]
if arch == Arch.x86_64:
command += ["-device", "virtio-vga-gl"]
if args.qemu_display != "none":
command += ["-device", "virtio-vga-gl"]
elif arch == Arch.aarch64:
command += ["-M", "virt"]
command += ["-cpu", "cortex-a57"]