diff -Nru multipath-tools-0.8.8/debian/changelog multipath-tools-0.8.8/debian/changelog --- multipath-tools-0.8.8/debian/changelog 2023-07-13 18:50:32.000000000 +0000 +++ multipath-tools-0.8.8/debian/changelog 2023-09-20 12:18:54.000000000 +0000 @@ -1,3 +1,10 @@ +multipath-tools (0.8.8-1ubuntu2.2) lunar; urgency=medium + + * debian/multipath-tools.postinst: restart multipathd when upgrading from lt + 0.8.8-1ubuntu2.2 (LP: #2035098) + + -- Mitchell Dzurick Wed, 20 Sep 2023 05:18:54 -0700 + multipath-tools (0.8.8-1ubuntu2.1) lunar; urgency=medium * d/p/0018-libmpathpersist-fix-command-keyword-ordering.patch: diff -Nru multipath-tools-0.8.8/debian/multipath-tools.postinst multipath-tools-0.8.8/debian/multipath-tools.postinst --- multipath-tools-0.8.8/debian/multipath-tools.postinst 1970-01-01 00:00:00.000000000 +0000 +++ multipath-tools-0.8.8/debian/multipath-tools.postinst 2023-09-20 12:18:54.000000000 +0000 @@ -0,0 +1,30 @@ +#!/bin/sh +# postinst script for multipath-tools +# +# see: dh_installdeb(1) + +set -e + +FIXED=0.8.8-1ubuntu2.2 +# The previous multipath-tools.prerm maintainer script did not stop the +# multipathd.service unit, therefore it needs to be stopped here for this +# specific upgrade case. +# "systemctl daemon-reload" is specifically not being called before +# deb-systemd-invoke because: +# a) it will be called later in the script, before multipathd.service is +# started, so let's not call it twice +# b) it has system-wide effects, like running all systemd generators again +# c) we don't really need the new multipathd.service unit file to stop the old +# running daemon. In fact, one could argue it's more correct to use the old +# unit file to stop the old daemon. +# This approach will generate a one-time warning that can be ignored. +if dpkg --compare-versions "$2" lt-nl "$FIXED"; then + echo -n "The warning about having to reload systemd units can be safely" >&2 + echo " ignored. Please see LP: #2035098 for details." >&2 + + deb-systemd-invoke stop 'multipathd.service' >/dev/null || true +fi + +#DEBHELPER# + +exit 0