kernel-modules/module-setup.sh: just optionally install all modprobe.d
authorHarald Hoyer <harald@redhat.com>
Mon, 23 Jul 2012 13:40:20 +0000 (15:40 +0200)
committerHarald Hoyer <harald@redhat.com>
Mon, 23 Jul 2012 13:40:20 +0000 (15:40 +0200)
modules.d/90kernel-modules/module-setup.sh

index 5391ed7..1632367 100755 (executable)
@@ -77,10 +77,7 @@ installkernel() {
 install() {
     local _f i
     [ -f /etc/modprobe.conf ] && dracut_install /etc/modprobe.conf
-    set -- /{etc,lib}/modprobe.d/*.conf
-    if [[ -f $1 ]]; then
-        dracut_install "$@"
-    fi
+    dracut_install -o /{etc,lib}/modprobe.d/*.conf
     inst_hook cmdline 01 "$moddir/parse-kernel.sh"
     inst_simple "$moddir/insmodpost.sh" /sbin/insmodpost.sh
 }