kernel-modules/module-setup.sh: also install /lib/modprobe.d/*.conf
authorHarald Hoyer <harald@redhat.com>
Wed, 11 Jul 2012 06:42:21 +0000 (08:42 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 11 Jul 2012 06:42:21 +0000 (08:42 +0200)
In theory we should only install /lib/modprobe.d/*.conf and only for
host-only the /etc/modprobe.d.

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

index 8822fa7..1744e53 100755 (executable)
@@ -77,7 +77,7 @@ installkernel() {
 install() {
     local _f i
     [ -f /etc/modprobe.conf ] && dracut_install /etc/modprobe.conf
-    dracut_install $(find -L /etc/modprobe.d/ -maxdepth 1 -type f -name '*.conf')
+    dracut_install $(find -L /{etc,lib}/modprobe.d/ -maxdepth 1 -type f -name '*.conf')
     inst_hook cmdline 01 "$moddir/parse-kernel.sh"
     inst_simple "$moddir/insmodpost.sh" /sbin/insmodpost.sh
 }