From: Harald Hoyer Date: Fri, 20 Jul 2012 11:10:58 +0000 (+0200) Subject: dracut-functions.sh: fixed host-only kernel module bug X-Git-Tag: 022~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52f74c80101a4bfcd0993e3e110bef9c6d106743;p=thirdparty%2Fdracut.git dracut-functions.sh: fixed host-only kernel module bug --- diff --git a/dracut-functions.sh b/dracut-functions.sh index 7fa92357c..6358078b8 100755 --- a/dracut-functions.sh +++ b/dracut-functions.sh @@ -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