Blame 0002-95nfs-module-setup.sh-removed-egrep-and-ls-calls.patch
|
Harald Hoyer |
66318b |
From 5e5f3d5e6c9d94996c9a28bf38f26a4d463c4dd4 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
66318b |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
66318b |
Date: Sat, 25 Feb 2012 16:06:16 +0100
|
|
Harald Hoyer |
66318b |
Subject: [PATCH] 95nfs/module-setup.sh: removed "egrep" and "ls" calls
|
|
Harald Hoyer |
66318b |
|
|
Harald Hoyer |
66318b |
---
|
|
Harald Hoyer |
66318b |
modules.d/95nfs/module-setup.sh | 6 +++++-
|
|
Harald Hoyer |
66318b |
1 files changed, 5 insertions(+), 1 deletions(-)
|
|
Harald Hoyer |
66318b |
|
|
Harald Hoyer |
66318b |
diff --git a/modules.d/95nfs/module-setup.sh b/modules.d/95nfs/module-setup.sh
|
|
Harald Hoyer |
66318b |
index 7aedb4d..7853783 100755
|
|
Harald Hoyer |
66318b |
--- a/modules.d/95nfs/module-setup.sh
|
|
Harald Hoyer |
66318b |
+++ b/modules.d/95nfs/module-setup.sh
|
|
Harald Hoyer |
66318b |
@@ -54,7 +54,11 @@ install() {
|
|
Harald Hoyer |
66318b |
_nsslibs=${_nsslibs#|}
|
|
Harald Hoyer |
66318b |
_nsslibs=${_nsslibs%|}
|
|
Harald Hoyer |
66318b |
|
|
Harald Hoyer |
66318b |
- dracut_install $(for _i in $(ls {/usr,}$libdir/libnss*.so 2>/dev/null); do echo $_i;done | egrep "$_nsslibs")
|
|
Harald Hoyer |
66318b |
+ for _i in {/usr,}$libdir/libnss*.so; do
|
|
Harald Hoyer |
66318b |
+ [[ -e $_i ]] || continue
|
|
Harald Hoyer |
66318b |
+ [[ "$_i" =~ $_nsslibs ]] || continue
|
|
Harald Hoyer |
66318b |
+ dracut_install "$_i"
|
|
Harald Hoyer |
66318b |
+ done
|
|
Harald Hoyer |
66318b |
|
|
Harald Hoyer |
66318b |
inst_hook cmdline 90 "$moddir/parse-nfsroot.sh"
|
|
Harald Hoyer |
66318b |
inst_hook pre-udev 99 "$moddir/nfs-start-rpc.sh"
|