]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
UBUNTU: [Debian] hyper-v -- Ensure that hv-kvp-daemon.service starts before walinuxag...
authorPaul Meyer <Paul.Meyer@microsoft.com>
Fri, 3 Aug 2018 14:49:07 +0000 (10:49 -0400)
committerKamal Mostafa <kamal@canonical.com>
Wed, 22 Aug 2018 20:41:25 +0000 (13:41 -0700)
BugLink: https://bugs.launchpad.net/bugs/1739107
The hv-kvp-daemon service starts after walinuxagent. The default dependencies make hv-kvp-daemon
wait until the whole system is up before it can start, which is not necessary and blocks Azure
telemetry use case. This commit changes the hv-kvp-daemon.service unit file to start it up as
early as possible so that the channel for telemetry can be use.

Signed-off-by: Eric Desrochers <eric.desrochers@canonical.com>
Acked-by: Kamal Mostafa <kamal@canonical.com>
Acked-by: Marcelo Henrique Cerri <marcelo.cerri@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
debian/linux-cloud-tools-common.hv-kvp-daemon.service

index c86a812a00337373a23992e8e846dddf00adfdf5..015c96f9fea7f0cc409c6021f77e080e7b0a2a57 100644 (file)
@@ -4,6 +4,11 @@
 [Unit]
 Description=Hyper-V KVP Protocol Daemon
 ConditionVirtualization=microsoft
+DefaultDependencies=no
+After=systemd-remount-fs.service
+Before=shutdown.target cloud-init-local.service walinuxagent.service
+Conflicts=shutdown.target
+RequiresMountsFor=/var/lib/hyperv
 
 [Service]
 ExecStart=/usr/sbin/hv_kvp_daemon -n