From: Colin Guthrie Date: Fri, 16 Dec 2011 23:11:39 +0000 (+0000) Subject: kernel-modules: Find (and ulitmately dereference) any symlinks in modprobe.d dir. X-Git-Tag: 015~93 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa20c1852567f0cad2247fc315c450f51a1c03ee;p=thirdparty%2Fdracut.git kernel-modules: Find (and ulitmately dereference) any symlinks in modprobe.d dir. Also only do the top level of files (ignore any subdirs and files within) --- diff --git a/modules.d/90kernel-modules/module-setup.sh b/modules.d/90kernel-modules/module-setup.sh index 8d2ab91cd..257b3bc95 100755 --- a/modules.d/90kernel-modules/module-setup.sh +++ b/modules.d/90kernel-modules/module-setup.sh @@ -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"