Browse Source

dracut-functions: filter_kernel_modules() search in extra dirs

search also in "extra" and "weak-updates" for kernel modules
https://bugzilla.redhat.com/show_bug.cgi?id=622641
master
Harald Hoyer 15 years ago
parent
commit
1f9de919e0
  1. 4
      dracut-functions

4
dracut-functions

@ -632,7 +632,7 @@ for_each_kmod_dep() { @@ -632,7 +632,7 @@ for_each_kmod_dep() {
# This function returns the full filenames of modules that match $1
filter_kernel_modules () (
if ! [[ $hostonly ]]; then
filtercmd='find "$srcmods/kernel/drivers" -name "*.ko" -o -name "*.ko.gz"'
filtercmd='find "$srcmods/kernel/drivers" "$srcmods/extra" "$srcmods/weak-updates" -name "*.ko" -o -name "*.ko.gz" 2>/dev/null'
else
filtercmd='cut -d " " -f 1 </proc/modules|xargs modinfo -F filename -k $kernel'
fi
@ -693,4 +693,4 @@ instmods() { @@ -693,4 +693,4 @@ instmods() {
esac
shift
done
}
}

Loading…
Cancel
Save