projects
/
platform
/
upstream
/
dracut.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff0bfa2
)
multipath: supress warnings, if multipath not installed on system
author
Harald Hoyer
<harald@redhat.com>
Mon, 30 Nov 2009 14:24:47 +0000
(15:24 +0100)
committer
Harald Hoyer
<harald@redhat.com>
Mon, 30 Nov 2009 14:24:47 +0000
(15:24 +0100)
modules.d/90multipath/install
patch
|
blob
|
history
diff --git
a/modules.d/90multipath/install
b/modules.d/90multipath/install
index
26a3fda
..
f14c58c
100755
(executable)
--- a/
modules.d/90multipath/install
+++ b/
modules.d/90multipath/install
@@
-4,7
+4,7
@@
if [[ $hostonly ]]; then
inst /etc/multipath.conf
fi
-if ldd
/sbin/multipath
|grep -q lib64; then
+if ldd
$(which multipath) 2>/dev/null
|grep -q lib64; then
LIBDIR="/lib64"
else
LIBDIR="/lib"
@@
-19,7
+19,7
@@
for f in \
/sbin/xdrgetuid \
/sbin/xdrgetprio \
/etc/xdrdevices.conf \
- $(ls $LIBDIR/libmultipath* $LIBDIR/multipath/*) \
+ $(ls $LIBDIR/libmultipath* $LIBDIR/multipath/*
2>/dev/null
) \
;do
inst $f
done