]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut-functions.sh:find_kernel_modules_by_path() fixed updates search
authorHarald Hoyer <harald@redhat.com>
Mon, 17 Feb 2014 12:27:46 +0000 (13:27 +0100)
committerHarald Hoyer <harald@redhat.com>
Tue, 29 Jul 2014 09:52:06 +0000 (11:52 +0200)
"updates/*" path does not start with "/"

dracut-functions.sh

index 96a20d521ac0b5882dfe9ac8ee1533561384e39d..bddcdcf277202074eb0e92345345d7f969b0564a 100755 (executable)
@@ -1530,7 +1530,7 @@ find_kernel_modules_by_path () {
     _OLDIFS=$IFS
     IFS=:
     while read a rest; do
-        [[ $a = */$1/* ]] || [[ $a = */updates/* ]] || continue
+        [[ $a = */$1/* ]] || [[ $a = updates/* ]] || continue
         printf "%s\n" "$srcmods/$a"
     done < "$srcmods/modules.dep"
     IFS=$_OLDIFS