dracut-functions.sh:find_kernel_modules_by_path() fixed hostonly part
filter /sys/module/* modules by pathmaster
parent
ec61f0a3af
commit
194b80f974
|
@ -1277,7 +1277,11 @@ find_kernel_modules_by_path () (
|
||||||
IFS=$_OLDIFS
|
IFS=$_OLDIFS
|
||||||
else
|
else
|
||||||
( 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
|
||||||
|
[[ $a = kernel*/$1/* ]] || continue
|
||||||
|
echo $srcmods/$a
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
return 0
|
return 0
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue