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

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