mirror of
https://github.com/dracutdevs/dracut.git
synced 2024-10-26 16:25:20 +03:00
dracut-functions.sh: fixed host-only kernel module bug
This commit is contained in:
parent
ddf818dad5
commit
52f74c8010
@ -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…
Reference in New Issue
Block a user