]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
UBUNTU: [Packaging] bind hv_fcopy_daemon startup to hv_fcopy device
authorMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Mon, 24 Aug 2020 16:59:48 +0000 (13:59 -0300)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Fri, 4 Sep 2020 19:30:19 +0000 (16:30 -0300)
commita80a7da2ecbe63eeb3acb0701368f5db2e79499a
treeeb1316999f2a30ec340149a7ed42aae92d09456d
parente8d92bd801286dda601a516f8b7e7fc175fc21a8
UBUNTU: [Packaging] bind hv_fcopy_daemon startup to hv_fcopy device

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

The udev rules is responsible for starting the service only when the
fcopy 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-fcopy-daemon.service
debian/linux-cloud-tools-common.hv-fcopy-daemon.udev [new file with mode: 0644]
debian/rules.d/3-binary-indep.mk