projects
/
platform
/
upstream
/
dracut.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec61f0a
)
dracut-functions.sh:find_kernel_modules_by_path() fixed hostonly part
author
Harald Hoyer
<harald@redhat.com>
Mon, 2 Jul 2012 20:51:24 +0000
(22:51 +0200)
committer
Harald Hoyer
<harald@redhat.com>
Mon, 2 Jul 2012 20:51:24 +0000
(22:51 +0200)
filter /sys/module/* modules by path
dracut-functions.sh
patch
|
blob
|
history
diff --git
a/dracut-functions.sh
b/dracut-functions.sh
index
2898c30
..
6de7c72
100755
(executable)
--- 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
)