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

master
Harald Hoyer 2012-07-20 13:10:58 +02:00
parent ddf818dad5
commit 52f74c8010
1 changed files with 2 additions and 2 deletions

View File

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