Browse Source

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

master
Harald Hoyer 13 years ago
parent
commit
52f74c8010
  1. 4
      dracut-functions.sh

4
dracut-functions.sh

@ -1296,8 +1296,8 @@ find_kernel_modules_by_path () ( @@ -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

Loading…
Cancel
Save