Package: libvirt-daemon-system
Version: 3.8.0-3
Severity: normal

Hi,
in 3.5 we fixed this already to some extend but I realized it misses something.
In Detail when there is no virtlockd sysv init file, then as-is the
defaults file isn't installed.

Now Ubuntu for a while had such a sysv file when Debian already
dropped it, so I missed that detail on:
 3.5.0-1:
 * [dd2991f] Ship default file for virtlockd
 * [c3b6ff2] Ship default file for virtlockd (Closes: #863648)

Looking in more detail I realized that to make that work without a
sysv script it needs to be listed for dh_installinit to pick the file
up.

A patch for that is attached, thank you in advance for taking a look.

Testable via:
$ apt install libvirt-daemon-system
$ ls -laF /etc/default/virtlockd

While not the most important config file, I think it is easy to fix,
therefore I open with sev-normal instead of low.

-- 
Christian Ehrhardt
Software Engineer, Ubuntu Server
Canonical Ltd
diff --git a/debian/rules b/debian/rules
index ef1c860..498baa4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -236,6 +236,7 @@ endif
 override_dh_installinit:
 	dh_systemd_enable
 	dh_installinit -p libvirt-daemon-system --name=virtlogd --no-restart-on-upgrade
+	dh_installinit -p libvirt-daemon-system --name=virtlockd --no-restart-on-upgrade
 	dh_installinit -p libvirt-daemon-system --name=libvirtd --restart-after-upgrade -- defaults 28 72
 	dh_installinit -p libvirt-daemon-system --name=libvirt-guests --no-restart-on-upgrade -- defaults 29 71
 	dh_systemd_start -p libvirt-daemon-system --restart-after-upgrade libvirtd.service

Reply via email to