diff options
author | Harald Hoyer <harald@redhat.com> | 2012-02-25 16:06:16 +0100 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2012-02-25 16:06:16 +0100 |
commit | 5e5f3d5e6c9d94996c9a28bf38f26a4d463c4dd4 (patch) | |
tree | 1140c145da6fdc040a543860dbeab6580dcad2ae /modules.d/95nfs | |
parent | 25b36ef1247499b501a52a75764ebe9fc5a6159c (diff) | |
download | dracut-5e5f3d5e6c9d94996c9a28bf38f26a4d463c4dd4.tar.gz dracut-5e5f3d5e6c9d94996c9a28bf38f26a4d463c4dd4.tar.bz2 dracut-5e5f3d5e6c9d94996c9a28bf38f26a4d463c4dd4.zip |
95nfs/module-setup.sh: removed "egrep" and "ls" calls
Diffstat (limited to 'modules.d/95nfs')
-rwxr-xr-x | modules.d/95nfs/module-setup.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules.d/95nfs/module-setup.sh b/modules.d/95nfs/module-setup.sh index 7aedb4d6..78537836 100755 --- a/modules.d/95nfs/module-setup.sh +++ b/modules.d/95nfs/module-setup.sh @@ -54,7 +54,11 @@ install() { _nsslibs=${_nsslibs#|} _nsslibs=${_nsslibs%|} - dracut_install $(for _i in $(ls {/usr,}$libdir/libnss*.so 2>/dev/null); do echo $_i;done | egrep "$_nsslibs") + for _i in {/usr,}$libdir/libnss*.so; do + [[ -e $_i ]] || continue + [[ "$_i" =~ $_nsslibs ]] || continue + dracut_install "$_i" + done inst_hook cmdline 90 "$moddir/parse-nfsroot.sh" inst_hook pre-udev 99 "$moddir/nfs-start-rpc.sh" |