Bug#768315: unblock: util-linux/2.25.2-3
On Thu, Nov 6, 2014 at 14:13:01 +0100, Andreas Henriksson wrote:
> diff -Nru util-linux-2.25.2/debian/util-linux.preinst util-linux-2.25.2/debian/util-linux.preinst
> --- util-linux-2.25.2/debian/util-linux.preinst 1970-01-01 01:00:00.000000000 +0100
> +++ util-linux-2.25.2/debian/util-linux.preinst 2014-11-06 13:54:11.000000000 +0100
> @@ -0,0 +1,13 @@
> +#!/bin/sh
> +set -e
> +
> +# We once shipped fstrim.timer in 2.25.2-2. Undo the timer getting enabled
> +# and purge the helper state, if upgrading from that version.
> +if [ "$1" = "upgrade" ] && [ "$2" = "2.25.2-2" ] && \
> + [ -x /usr/bin/deb-systemd-helper ] && \
> + deb-systemd-helper debian-installed fstrim.timer; then
> + deb-systemd-helper disable fstrim.timer
> + deb-systemd-helper purge fstrim.timer
> +fi
> +
Why not do that in postinst when you know deb-systemd-helper is
available?
Cheers,
Julien
Reply to: