]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
kernel-modules: Find (and ulitmately dereference) any symlinks in modprobe.d dir.
authorColin Guthrie <colin@mageia.org>
Fri, 16 Dec 2011 23:11:39 +0000 (23:11 +0000)
committerHarald Hoyer <harald@redhat.com>
Mon, 9 Jan 2012 12:29:24 +0000 (13:29 +0100)
Also only do the top level of files (ignore any subdirs and files within)

modules.d/90kernel-modules/module-setup.sh

index 8d2ab91cd7fe14b88d0ca6be6fd75b97e642f2b1..257b3bc95f42849da9218328e0ee6feb47181a53 100755 (executable)
@@ -70,7 +70,7 @@ installkernel() {
 install() {
     local _f
     [ -f /etc/modprobe.conf ] && dracut_install /etc/modprobe.conf
-    for i in $(find /etc/modprobe.d/ -type f -name '*.conf'); do
+    for i in $(find -L /etc/modprobe.d/ -maxdepth 1 -type f -name '*.conf'); do
         inst_simple "$i"
     done
     inst_hook cmdline 01 "$moddir/parse-kernel.sh"