PREIN
/bin/sh
if [ -L /sbin/lvm -a -L /etc/alternatives/lvm ]; then
update-alternatives --remove lvm /sbin/lvm2
fi
POSTIN
/bin/sh
/usr/bin/systemd-tmpfiles --create lvm2.conf
if [ $1 -eq 1 ] ; then
# Initial installation
systemctl --no-reload preset blk-availability.service lvm2-monitor.service >/dev/null 2>&1 || :
fi
if [ "$1" = "1" ] ; then
# enable and start lvm2-monitor.service on completely new installation only, not on upgrades
systemctl enable --now lvm2-monitor.service > /dev/null 2>&1 || :
fi