Comment 13 for bug 2000186

Revision history for this message
Mitchell Dzurick (mitchdz) wrote (last edit ): Re: update fails on cloud server (invoke-rc.d restart failed)

I don't have a system right now to reproduce the failure, but I'm looking into getting said system. From looking at the failure, it seems this can be solved by the simple diff to d/rules in 0.8.8-1ubuntu1.22.04.1:

diff --git a/debian/rules b/debian/rules
index 5a32e8e..d2949c4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -130,7 +130,7 @@ binary-arch: build install
        dh_installexamples -a
        dh_lintian -a
        dh_systemd_enable -pmultipath-tools multipathd.service
- dh_installinit -pmultipath-tools
+ dh_installinit -pmultipath-tools --no-start
        dh_installudev -pkpartx --priority=95
        dh_installudev -pkpartx --name=dm-parts --priority=56
        dh_installudev -pkpartx --name=del-part-nodes --priority=68

This would remove the restart/start operation from debhelper, making the dh_installinit automatically added section look like:

# Automatically added by dh_installinit/13.6ubuntu1
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
 if [ -x "/etc/init.d/multipath-tools" ]; then
  update-rc.d multipath-tools defaults >/dev/null || exit 1
 fi
fi
# End automatically added section

FYI - mantic multipath-tools is in progress (https://bugs.launchpad.net/ubuntu/+source/multipath-tools/+bug/2018051) and looks to be affected by this too, so if the above solution works I can sneak this in to the mantic version before release.