From 0499e0d2c46588e925774fa6625184395dc6e124 Mon Sep 17 00:00:00 2001 From: Benjamin Marzinski Date: Thu, 30 Jul 2009 01:34:50 +0000 Subject: [PATCH] fixed the spec file, so that multipath will not lose its binding if it is upgraded from a package where the bindings file was stored in /var/lib/multipath/bindings --- device-mapper-multipath.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/device-mapper-multipath.spec b/device-mapper-multipath.spec index 89e41c1..a06e6b7 100644 --- a/device-mapper-multipath.spec +++ b/device-mapper-multipath.spec @@ -98,6 +98,12 @@ rm -rf $RPM_BUILD_ROOT %post /sbin/ldconfig /sbin/chkconfig --add multipathd +if [ "$1" -gt "1" -a ! -e /etc/multipath/bindings -a \ + -f /var/lib/multipath/bindings ]; then + mv /var/lib/multipath/bindings /etc/multipath/bindings + ln -s /etc/multipath/bindings /var/lib/multipath/bindings +fi + %preun if [ "$1" = 0 ]; then