UBUNTU: [Packaging] disable hv-kvp-daemon if needed
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@canonical.com> Acked-by: Magali Lemes <magali.lemes@canonical.com> Acked-by: Tim Whisonant <tim.whisonant@canonical.com> Signed-off-by: Mehmet Basaran <mehmet.basaran@canonical.com>
This commit is contained in:
committed by
Mehmet Basaran
parent
a1da6b8a3e
commit
7baf33c435
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user