diff options
author | Harald Hoyer <harald@redhat.com> | 2009-11-25 19:59:30 +0100 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2009-11-25 20:08:22 +0100 |
commit | bad6113059a6726b76b717c8df18c5a4ae8f7110 (patch) | |
tree | fec0f712ba5e7a6e09fea8db8f0174644d5a3d07 /modules.d | |
parent | 9e7ac6982a393bee431c3aa2b641127dffe884bb (diff) |
lvm/dmraid: make LIBDIR depend on the binary
Diffstat (limited to 'modules.d')
-rwxr-xr-x | modules.d/90dmraid/install | 8 | ||||
-rwxr-xr-x | modules.d/90lvm/install | 8 |
2 files changed, 14 insertions, 2 deletions
diff --git a/modules.d/90dmraid/install b/modules.d/90dmraid/install index 0431850..a016e4d 100755 --- a/modules.d/90dmraid/install +++ b/modules.d/90dmraid/install @@ -3,7 +3,13 @@ dracut_install dmraid partx kpartx inst dmeventd -for i in $(ls /usr/lib*/libdmraid-events*.so /lib*/libdmraid-events*.so); do +if ldd $(which dmraid) | grep -q lib64; then + LIBDIR="/lib64" +else + LIBDIR="/lib" +fi + +for i in $(ls /{usr,}/$LIBDIR/libdmraid-events*.so 2>/dev/null); do dracut_install $i done diff --git a/modules.d/90lvm/install b/modules.d/90lvm/install index 3ff4352..56e2eb0 100755 --- a/modules.d/90lvm/install +++ b/modules.d/90lvm/install @@ -2,13 +2,19 @@ inst lvm inst dmeventd +if ldd $(which lvm) | grep -q lib64; then + LIBDIR="/lib64" +else + LIBDIR="/lib" +fi + inst_rules "$moddir/64-lvm.rules" 64-lvm.rules if [[ $hostonly ]] || [[ $lvmconf = "yes" ]]; then [ -f /etc/lvm/lvm.conf ] && inst /etc/lvm/lvm.conf fi -for i in $(ls /lib*/libdevmapper-event*.so); do +for i in $(ls /$LIBDIR/libdevmapper-event*.so 2>/dev/null); do dracut_install $i done |