summaryrefslogtreecommitdiff
path: root/modules.d/95udev-rules
diff options
context:
space:
mode:
authorAmadeusz Żołnowski <aidecoe@aidecoe.name>2010-08-18 20:11:29 +0200
committerHarald Hoyer <harald@redhat.com>2010-08-23 11:55:11 +0200
commit55309e78003956bfa6f970fd1168f13a4455c0fd (patch)
tree01f2b6749ddbe910d7f8c9c560f236fd716295f9 /modules.d/95udev-rules
parentfa5cd2bf50d86885de9ae3ce18d1c36c62b0d9ed (diff)
downloaddracut-55309e78003956bfa6f970fd1168f13a4455c0fd.tar.gz
dracut-55309e78003956bfa6f970fd1168f13a4455c0fd.tar.bz2
dracut-55309e78003956bfa6f970fd1168f13a4455c0fd.zip
use $libdir and $usrlibdir instead of individual detect with ldd
Diffstat (limited to 'modules.d/95udev-rules')
-rwxr-xr-xmodules.d/95udev-rules/install8
1 files changed, 3 insertions, 5 deletions
diff --git a/modules.d/95udev-rules/install b/modules.d/95udev-rules/install
index e89acb5b..d57dd8d5 100755
--- a/modules.d/95udev-rules/install
+++ b/modules.d/95udev-rules/install
@@ -48,8 +48,6 @@ done
[ -f /etc/arch-release ] && inst "$moddir/load-modules.sh" /lib/udev/load-modules.sh
-if ldd $(find_binary udevd) |grep -q /lib64/; then
- dracut_install /lib64/libnss_files*
-else
- dracut_install /lib/libnss_files*
-fi
+for i in {"$libdir","$usrlibdir"}/libnss_files*; do
+ dracut_install "$i"
+done