qemu-ga: skip starting on bare metal device
authorAndy Chiang <redacted>
Mon, 18 May 2026 16:56:53 +0000 (23:56 +0700)
committerHannu Nyman <redacted>
Sat, 23 May 2026 10:23:48 +0000 (13:23 +0300)
commite161cf1dde1d7863fa0f90f5048fedf3ad34ff0b
treed3d417653ddd7be4d57be5133a256d2fdc4a4db9
parent29a46353fc16529c5007244e158e6a65386d3fa4
qemu-ga: skip starting on bare metal device

The same firmware image may be deployed on either bare metal device or
virtualized platforms (e.g., Proxmox VE).

On bare metal device, `qemu-ga` may still be started even though no
virtio-serial channel is available, resulting in repeated attempts to
access /dev/virtio-ports/org.qemu.guest_agent.0.

This causes continuous service respawning by procd and unnecessary log
spam.

This commit adds a pre-check for /dev/virtio-ports to avoid starting
`qemu-ga` when virtio-serial support is not present.

Signed-off-by: Andy Chiang <redacted>
utils/qemu/Makefile
utils/qemu/files/qemu-ga.init
git clone https://git.99rst.org/PROJECT