[SRU][unstable/plucky/oracular/noble:linux][PATCH 1/1] UBUNTU: [Packaging] disable hv-kvp-daemon if needed

John Cabaj john.cabaj at canonical.com
Fri Dec 13 22:39:11 UTC 2024


From: Gauthier Jolly <gauthier.jolly at canonical.com>

BugLink: https://bugs.launchpad.net/bugs/2091744

The daemon reads from this vmbus, if it is not present, it will just
exit with an error. Adding this line to the service file will prevent
systemd from trying to start the daemon if the device is not present.

(cherry picked from commit 7da99ea3a1a745f6fd0c8632ef89573437888af6 jammy:linux)
Signed-off-by: John Cabaj <john.cabaj at canonical.com>
---
 debian/linux-cloud-tools-common.hv-kvp-daemon.service | 1 +
 1 file changed, 1 insertion(+)

diff --git a/debian/linux-cloud-tools-common.hv-kvp-daemon.service b/debian/linux-cloud-tools-common.hv-kvp-daemon.service
index 9f65063bfb1b..efd0931f7495 100644
--- a/debian/linux-cloud-tools-common.hv-kvp-daemon.service
+++ b/debian/linux-cloud-tools-common.hv-kvp-daemon.service
@@ -11,6 +11,7 @@ After=sys-devices-virtual-misc-vmbus\x21hv_kvp.device systemd-remount-fs.service
 Before=shutdown.target cloud-init-local.service walinuxagent.service
 Conflicts=shutdown.target
 RequiresMountsFor=/var/lib/hyperv
+ConditionPathExists=/dev/vmbus/hv_kvp
 
 [Service]
 ExecStart=/usr/sbin/hv_kvp_daemon -n
-- 
2.43.0




More information about the kernel-team mailing list