Support out-of-tree and updated drivers in initramfs creation
authorJoe Lawrence <Joe.Lawrence@stratus.com>
Thu, 24 Jan 2013 22:26:43 +0000 (17:26 -0500)
committerHarald Hoyer <harald@redhat.com>
Fri, 25 Jan 2013 12:07:59 +0000 (13:07 +0100)
The find_kernel_modules_by_path function shouldn't filter out modules not
located underneath the /lib/modules/ver/kernel directory as out-of-tree
drivers may reside in /lib/modules/ver/extra and updated drivers in
/lib/modules/ver/updates.

Signed-off-by: Joe Lawrence <joe.lawrence@stratus.com>
dracut-functions.sh

index e23db76..f7e3ec8 100755 (executable)
@@ -1502,7 +1502,7 @@ find_kernel_modules_by_path () (
         _OLDIFS=$IFS
         IFS=:
         while read a rest; do
-            [[ $a = kernel*/$1/* ]] || continue
+            [[ $a = */$1/* ]] || continue
             echo $srcmods/$a
         done < $srcmods/modules.dep
         IFS=$_OLDIFS