Package: util-linux
Severity: important
Version: 2.25.2-2

Upgrading util-linux to current version hangs a very long time (I
waited some 10 mintues). I noticed that fstrim was running, which is
apparently started by this autogenerated snippet in postinst:

# Automatically added by dh_systemd_start
if [ -d /run/systemd/system ]; then
        systemctl --system daemon-reload >/dev/null || true
        deb-systemd-invoke start fstrim.service fstrim.timer >/dev/null || true
fi

Even worse, as postinst doesn't check $1 this happens multiple times,
each time update-initramfs gets triggered.

IMHO this is undesired. fstrim ought to run in the background and not
block the whole upgrade. So this probably needs some --no-start
dh_installinit argument in debian/rules?

Thanks,

Martin

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)

Attachment: signature.asc
Description: Digital signature

Reply via email to