]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut-functions: filter_kernel_modules() search in extra dirs
authorHarald Hoyer <harald@redhat.com>
Tue, 10 Aug 2010 13:54:03 +0000 (15:54 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 22 Sep 2010 14:19:11 +0000 (16:19 +0200)
search also in "extra" and "weak-updates" for kernel modules
https://bugzilla.redhat.com/show_bug.cgi?id=622641

dracut-functions

index 421f2c7428ffad1469a3a4c5eca0f8d020b23da2..409e9ed23ef98a74ccc56570b0bd323c2cd1cc5a 100755 (executable)
@@ -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() {
     esac      
     shift
     done
-} 
\ No newline at end of file
+}