Skip to content

Commit

Permalink
UBUNTU: [Packaging] disable hv-kvp-daemon if needed
Browse files Browse the repository at this point in the history
BugLink: https://bugs.launchpad.net/bugs/2024900

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.

Signed-off-by: Gauthier Jolly <gauthier.jolly@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Acked-by: Andrei Gherzan <andrei.gherzan@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Roxana Nicolescu <roxana.nicolescu@canonical.com>
  • Loading branch information
Gauthier Jolly authored and Roxana Nicolescu committed Jul 7, 2023
1 parent 0190ae5 commit 9bc14a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions debian/linux-cloud-tools-common.hv-kvp-daemon.service
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9bc14a9

Please sign in to comment.