Blame 0018-kernel-modules-Find-and-ulitmately-dereference-any-s.patch

Harald Hoyer 3957aa
From fa20c1852567f0cad2247fc315c450f51a1c03ee Mon Sep 17 00:00:00 2001
Harald Hoyer 3957aa
From: Colin Guthrie <colin@mageia.org>
Harald Hoyer 3957aa
Date: Fri, 16 Dec 2011 23:11:39 +0000
Harald Hoyer 3957aa
Subject: [PATCH] kernel-modules: Find (and ulitmately dereference) any
Harald Hoyer 3957aa
 symlinks in modprobe.d dir.
Harald Hoyer 3957aa
Harald Hoyer 3957aa
Also only do the top level of files (ignore any subdirs and files within)
Harald Hoyer 3957aa
---
Harald Hoyer 3957aa
 modules.d/90kernel-modules/module-setup.sh |    2 +-
Harald Hoyer 3957aa
 1 files changed, 1 insertions(+), 1 deletions(-)
Harald Hoyer 3957aa
Harald Hoyer 3957aa
diff --git a/modules.d/90kernel-modules/module-setup.sh b/modules.d/90kernel-modules/module-setup.sh
Harald Hoyer 3957aa
index 8d2ab91..257b3bc 100755
Harald Hoyer 3957aa
--- a/modules.d/90kernel-modules/module-setup.sh
Harald Hoyer 3957aa
+++ b/modules.d/90kernel-modules/module-setup.sh
Harald Hoyer 3957aa
@@ -70,7 +70,7 @@ installkernel() {
Harald Hoyer 3957aa
 install() {
Harald Hoyer 3957aa
     local _f
Harald Hoyer 3957aa
     [ -f /etc/modprobe.conf ] && dracut_install /etc/modprobe.conf
Harald Hoyer 3957aa
-    for i in $(find /etc/modprobe.d/ -type f -name '*.conf'); do
Harald Hoyer 3957aa
+    for i in $(find -L /etc/modprobe.d/ -maxdepth 1 -type f -name '*.conf'); do
Harald Hoyer 3957aa
         inst_simple "$i"
Harald Hoyer 3957aa
     done
Harald Hoyer 3957aa
     inst_hook cmdline 01 "$moddir/parse-kernel.sh"