]> git.ipfire.org Git - thirdparty/systemd.git/commit
stub: Prefer graphical console over virtio detection heuristic
authorKai Lüke <kai@amutable.com>
Wed, 8 Jul 2026 15:25:11 +0000 (00:25 +0900)
committerLennart Poettering <lennart@poettering.net>
Thu, 9 Jul 2026 08:54:52 +0000 (10:54 +0200)
commit2f76050c5c3904dbbfaa804e7d683bf957162e1f
tree911705764b9a55590478018d7d80aa5d2b3e14a0
parentce043cdfdb274b46cb7b18ebfaaebd94d7f856a0
stub: Prefer graphical console over virtio detection heuristic

With vmspawn --console=gui and similar one has the case where the VirtIO
PCI device is present for something else than the console and the logic
in sd-stub added console=hvc0 even though it didn't exist. This caused
tty0 to be empty during boot.
Always prefer the graphical console before a potential virtio console.
The virtio console is still preferred over a serial console and we can
get the same problem there, e.g., qemu-guest-agent is used causing the
PCI device but without a virtio console and instead a serial console is
used. This is not solved here.
src/boot/console.c