]> 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>
Mon, 17 Feb 2014 12:29:42 +0000 (13:29 +0100)
"updates/*" path does not start with "/"

dracut-functions.sh

index 32f264b9549240fd401b2cd72277b5728ef1a382..afe2f38edd816a2b30bf15af9e6ac97b97c0f4f6 100755 (executable)
@@ -1596,7 +1596,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