Blame SOURCES/0125-dracut-functions.sh-find_kernel_modules_by_path-fixe.patch

18971c
From 64c88c2f1d9576afc8b22a9d0c0feea5b51dfb64 Mon Sep 17 00:00:00 2001
18971c
From: Harald Hoyer <harald@redhat.com>
18971c
Date: Mon, 17 Feb 2014 13:27:46 +0100
18971c
Subject: [PATCH] dracut-functions.sh:find_kernel_modules_by_path() fixed
18971c
 updates search
18971c
18971c
"updates/*" path does not start with "/"
18971c
---
18971c
 dracut-functions.sh | 2 +-
18971c
 1 file changed, 1 insertion(+), 1 deletion(-)
18971c
18971c
diff --git a/dracut-functions.sh b/dracut-functions.sh
18971c
index 96a20d52..bddcdcf2 100755
18971c
--- a/dracut-functions.sh
18971c
+++ b/dracut-functions.sh
18971c
@@ -1530,7 +1530,7 @@ find_kernel_modules_by_path () {
18971c
     _OLDIFS=$IFS
18971c
     IFS=:
18971c
     while read a rest; do
18971c
-        [[ $a = */$1/* ]] || [[ $a = */updates/* ]] || continue
18971c
+        [[ $a = */$1/* ]] || [[ $a = updates/* ]] || continue
18971c
         printf "%s\n" "$srcmods/$a"
18971c
     done < "$srcmods/modules.dep"
18971c
     IFS=$_OLDIFS