From 4a292ab4be8e55d0d01170ef3c548698fab0dab9 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Tue, 11 Jun 2024 12:56:42 +0200 Subject: [PATCH] MT#60284 Only check whether /dev/virtio-ports/org.qemu.guest_agent.0 exists /dev/virtio-ports/org.qemu.guest_agent.0 usually is a symlink to the character device /dev/vport1p1. So adjust the device check accordingly and only verify it exists, but don't expected any special file type. This actually matches the behavior we also have in ngcp-installer. Fixup for commit 82e6638b40a Change-Id: I0aa93c1f0e1086847eb7ed6967692a52e183bdc3 --- templates/scripts/includes/deployment.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/scripts/includes/deployment.sh b/templates/scripts/includes/deployment.sh index d1e9eb0..1ce9d66 100755 --- a/templates/scripts/includes/deployment.sh +++ b/templates/scripts/includes/deployment.sh @@ -1534,7 +1534,8 @@ echo "Host IP: $(ip-screen)" echo "Deployment version: $SCRIPT_VERSION" # MT#60284 ensure qemu-guest-agent is running if it's available in VM -if [ -S /dev/virtio-ports/org.qemu.guest_agent.0 ] ; then +if [ -e /dev/virtio-ports/org.qemu.guest_agent.0 ] ; then + echo "Guest Agent VirtIO device detected, starting qemu-guest-agent service" systemctl start qemu-guest-agent fi