dracut-functions.sh: fixed host-only kernel module bug
authorHarald Hoyer <harald@redhat.com>
Fri, 20 Jul 2012 11:10:58 +0000 (13:10 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 20 Jul 2012 11:10:58 +0000 (13:10 +0200)
dracut-functions.sh

index 7fa92357c6d14680ab121d8c2428d68250ecf14c..6358078b8adb16af4afa7dde303ac60c2ca9c595 100755 (executable)
@@ -1296,8 +1296,8 @@ find_kernel_modules_by_path () (
         ( cd /sys/module; echo *; ) \
         | xargs -r modinfo -F filename -k $kernel 2>/dev/null \
         | while read a; do
-            [[ $a = kernel*/$1/* ]] || continue
-            echo $srcmods/$a
+            [[ $a = */kernel*/$1/* ]] || continue
+            echo $a
         done
     fi
     return 0