dracut-functions.sh: fixed host-only kernel module bug

This commit is contained in:
Harald Hoyer 2012-07-20 13:10:58 +02:00
parent ddf818dad5
commit 52f74c8010

View File

@ -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