Indeed, the following debdiff to init-system-helpers fixes it for me
(with the exception that I used quilt and it's a native package, so
don't use the debdiff verbatim) :

diff -Nru init-system-helpers-1.24ubuntu2/debian/changelog 
init-system-helpers-1.24ubuntu2x1/debian/changelog
--- init-system-helpers-1.24ubuntu2/debian/changelog    2015-11-18 
12:27:05.000000000 +0000
+++ init-system-helpers-1.24ubuntu2x1/debian/changelog  2016-01-16 
00:43:32.000000000 +0000
@@ -1,3 +1,9 @@
+init-system-helpers (1.24ubuntu2x1) xenial; urgency=medium
+
+  * fix inverted use of -r flag to dh_systemd_start
+
+ -- Serge Hallyn <serge.hal...@ubuntu.com>  Sat, 16 Jan 2016 00:42:51 +0000
+
 init-system-helpers (1.24ubuntu2) xenial; urgency=medium
 
   * Add Breaks/Replaces on upstart to cover move of
diff -Nru 
init-system-helpers-1.24ubuntu2/patches/fix-systemd-restart-on-upgrade.patch 
init-system-helpers-1.24ubuntu2x1/patches/fix-systemd-restart-on-upgrade.patch
--- 
init-system-helpers-1.24ubuntu2/patches/fix-systemd-restart-on-upgrade.patch    
    1970-01-01 00:00:00.000000000 +0000
+++ 
init-system-helpers-1.24ubuntu2x1/patches/fix-systemd-restart-on-upgrade.patch  
    2016-01-16 00:42:50.000000000 +0000
@@ -0,0 +1,13 @@
+Index: init-system-helpers-1.24ubuntu2/script/dh_systemd_start
+===================================================================
+--- init-system-helpers-1.24ubuntu2.orig/script/dh_systemd_start
++++ init-system-helpers-1.24ubuntu2/script/dh_systemd_start
+@@ -205,7 +205,7 @@ foreach my $package (@{$dh{DOPACKAGES}})
+ 
+       $sd_autoscript->("postrm", "postrm-systemd-reload-only");
+ 
+-      if ($dh{R_FLAG} || $dh{RESTART_AFTER_UPGRADE}) {
++      if (!$dh{R_FLAG} || $dh{RESTART_AFTER_UPGRADE}) {
+               # stop service only on remove
+               $sd_autoscript->("prerm", "prerm-systemd-restart");
+       } elsif (!$dh{NO_START}) {
diff -Nru init-system-helpers-1.24ubuntu2/patches/series 
init-system-helpers-1.24ubuntu2x1/patches/series
--- init-system-helpers-1.24ubuntu2/patches/series      1970-01-01 
00:00:00.000000000 +0000
+++ init-system-helpers-1.24ubuntu2x1/patches/series    2016-01-16 
00:42:06.000000000 +0000
@@ -0,0 +1 @@
+fix-systemd-restart-on-upgrade.patch


** Changed in: init-system-helpers (Ubuntu)
   Importance: Undecided => High

** Also affects: libvirt (Ubuntu Wily)
   Importance: Undecided
       Status: New

** Also affects: init-system-helpers (Ubuntu Wily)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1533839

Title:
  vms shutting down on libvirt upgrade

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/init-system-helpers/+bug/1533839/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to