]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
UBUNTU: [Packaging] Bind hv_vss_daemon startup to hv_vss device
authorMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Mon, 24 Aug 2020 16:59:47 +0000 (13:59 -0300)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Fri, 4 Sep 2020 19:30:13 +0000 (16:30 -0300)
commite8d92bd801286dda601a516f8b7e7fc175fc21a8
tree540f64b7c42dd2b4a67ec89171d5404db0c76837
parent57baa877eeb30b885df92ed46e3f13d2fbe97644
UBUNTU: [Packaging] Bind hv_vss_daemon startup to hv_vss device

BugLink: https://bugs.launchpad.net/bugs/1891224
Update the systemd service for the vss daemon and add a new udev rule
to ensure the service will not fail in case vss is not enabled for the
guest.

The udev rules is responsible for starting the service only when the
vss device is available. In the unit file, the service is now bound to
the device unit, so the service can be stopped if the device is
removed. And the service is also conditioned to the existence of the
device, this way we avoid starting and stopping the service during
boot if the device is not available.

Signed-off-by: Marcelo Henrique Cerri <marcelo.cerri@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
debian/linux-cloud-tools-common.hv-vss-daemon.service
debian/linux-cloud-tools-common.hv-vss-daemon.udev [new file with mode: 0644]
debian/rules.d/3-binary-indep.mk