summaryrefslogtreecommitdiffstats
path: root/abs/core/lvm2/lvm2.install
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-03-02 21:20:48 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-03-02 21:20:48 (GMT)
commit84756879f17a8dd9acaca32e7edfee5cdeb2dbb8 (patch)
tree06cf833781552a4581dd052c405a0e137d0f4f9e /abs/core/lvm2/lvm2.install
parentd181c75e4e1954f1d892c71d8ff268aecdaab340 (diff)
downloadlinhes_pkgbuild-84756879f17a8dd9acaca32e7edfee5cdeb2dbb8.zip
linhes_pkgbuild-84756879f17a8dd9acaca32e7edfee5cdeb2dbb8.tar.gz
linhes_pkgbuild-84756879f17a8dd9acaca32e7edfee5cdeb2dbb8.tar.bz2
lvm2: update to 2.02.177
Diffstat (limited to 'abs/core/lvm2/lvm2.install')
-rw-r--r--abs/core/lvm2/lvm2.install9
1 files changed, 9 insertions, 0 deletions
diff --git a/abs/core/lvm2/lvm2.install b/abs/core/lvm2/lvm2.install
index 7faf708..e11834d 100644
--- a/abs/core/lvm2/lvm2.install
+++ b/abs/core/lvm2/lvm2.install
@@ -11,6 +11,15 @@ post_upgrade() {
echo " into /etc/lvm/lvm.conf or LVM will fail to work."
fi
fi
+
+ if [ $(vercmp $2 2.02.106-2) -lt 0 ]; then
+ if [ -L /etc/systemd/system/sysinit.target.wants/lvm-monitoring.service ]; then
+ echo "rm /etc/systemd/system/sysinit.target.wants/lvm-monitoring.service"
+ rm /etc/systemd/system/sysinit.target.wants/lvm-monitoring.service
+ echo "ln -s /usr/lib/systemd/system/lvm2-monitor.service /etc/systemd/system/sysinit.target.wants/lvm2-monitor.service"
+ ln -s /usr/lib/systemd/system/lvm2-monitor.service /etc/systemd/system/sysinit.target.wants/lvm2-monitor.service
+ fi
+ fi
}
# vim:set ts=2 sw=2 et: