Sophie

Sophie

distrib > Mageia > 7 > x86_64 > by-pkgid > 47904a4ac33119d00da6735f15327586 > scriptlet

lvm2-2.02.183-1.mga7.x86_64.rpm

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