Package: lvm2
Version: 2.02.122-2
Severity: important
Tags: patch
Hi,
With 2.02.122-2, lvm2 relies on the generator to create the activation
.service files.
In the previous version, the package was shipping the .service files,
as these are not shipped anymore, the package should take care of
cleaning several files during upgrade.
A maintainer script (postinst) should cleanup the things during the
upgrade.
Cheers,
Laurent Bigonville
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.1.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_BE.utf8, LC_CTYPE=fr_BE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
diff -Nru lvm2-2.02.127/debian/lvm2.postinst lvm2-2.02.127/debian/lvm2.postinst
--- lvm2-2.02.127/debian/lvm2.postinst 2015-08-15 11:38:27.000000000 +0200
+++ lvm2-2.02.127/debian/lvm2.postinst 2015-08-31 11:54:13.000000000 +0200
@@ -11,6 +11,10 @@
if [ -x /usr/sbin/update-initramfs ]; then
update-initramfs -u
fi
+ if dpkg --compare-versions "$2" lt-nl "2.02.127-2~";
+ deb-systemd-helper purge lvm2-activation-early.service lvm2-activation.service >/dev/null
+ deb-systemd-helper unmask lvm2-activation-early.service lvm2-activation.service >/dev/null
+ fi
;;
esac