diff options
author | Peter Jones <pjones@redhat.com> | 2009-11-24 14:43:56 -0500 |
---|---|---|
committer | Peter Jones <pjones@redhat.com> | 2009-11-25 10:54:09 -0500 |
commit | aff873923c8f165895cd15f3a3927b1fd355ca09 (patch) | |
tree | dd5cd5a3c9eaf78d436b59a7cfdc3f6590ac5091 | |
parent | 4d1661d39a6351b5181bc726074e684198c86e7c (diff) |
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/multipath
-rwxr-xr-x | modules.d/90multipath/install | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/modules.d/90multipath/install b/modules.d/90multipath/install index 9552918..cea8cd3 100755 --- a/modules.d/90multipath/install +++ b/modules.d/90multipath/install @@ -2,6 +2,12 @@ if [[ $hostonly ]]; then inst /etc/multipath.conf fi +if ldd /sbin/multipath |grep -q lib64; then + LIBDIR="/lib64" +else + LIBDIR="/lib" +fi + for f in \ /sbin/dmsetup \ /sbin/kpartx \ @@ -11,8 +17,8 @@ for f in \ /sbin/xdrgetuid \ /sbin/xdrgetprio \ /etc/xdrdevices.conf \ - /lib/libmultipath* \ - /lib/multipath/* ;do + $(ls $LIBDIR/libmultipath* $LIBDIR/multipath/*) \ + ;do inst $f done |