dracut-functions.sh:find_kernel_modules_by_path() fixed hostonly part

filter /sys/module/* modules by path
master
Harald Hoyer 2012-07-02 22:51:24 +02:00
parent ec61f0a3af
commit 194b80f974
1 changed files with 5 additions and 1 deletions

View File

@ -1277,7 +1277,11 @@ find_kernel_modules_by_path () (
IFS=$_OLDIFS
else
( 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
[[ $a = kernel*/$1/* ]] || continue
echo $srcmods/$a
done
fi
return 0
)