Use glob for libdir when installing multipath libraries.
Use "/lib*/" not "/lib/" so it works when they're in /lib/multipath as well as when they're in /lib64/multipathmaster
parent
4d1661d39a
commit
aff873923c
|
@ -2,6 +2,12 @@ if [[ $hostonly ]]; then
|
||||||
inst /etc/multipath.conf
|
inst /etc/multipath.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ldd /sbin/multipath |grep -q lib64; then
|
||||||
|
LIBDIR="/lib64"
|
||||||
|
else
|
||||||
|
LIBDIR="/lib"
|
||||||
|
fi
|
||||||
|
|
||||||
for f in \
|
for f in \
|
||||||
/sbin/dmsetup \
|
/sbin/dmsetup \
|
||||||
/sbin/kpartx \
|
/sbin/kpartx \
|
||||||
|
@ -11,8 +17,8 @@ for f in \
|
||||||
/sbin/xdrgetuid \
|
/sbin/xdrgetuid \
|
||||||
/sbin/xdrgetprio \
|
/sbin/xdrgetprio \
|
||||||
/etc/xdrdevices.conf \
|
/etc/xdrdevices.conf \
|
||||||
/lib/libmultipath* \
|
$(ls $LIBDIR/libmultipath* $LIBDIR/multipath/*) \
|
||||||
/lib/multipath/* ;do
|
;do
|
||||||
inst $f
|
inst $f
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue