From: Harald Hoyer Date: Mon, 2 Jul 2012 20:51:24 +0000 (+0200) Subject: dracut-functions.sh:find_kernel_modules_by_path() fixed hostonly part X-Git-Tag: 021~84 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=194b80f974751b2eb5e6f50075d150b9c8083b77;p=thirdparty%2Fdracut.git dracut-functions.sh:find_kernel_modules_by_path() fixed hostonly part filter /sys/module/* modules by path --- diff --git a/dracut-functions.sh b/dracut-functions.sh index 2898c3046..6de7c7233 100755 --- a/dracut-functions.sh +++ b/dracut-functions.sh @@ -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 )