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