90kernel-modules/module-setup.sh: install modules.* in installkernel()
authorHarald Hoyer <harald@redhat.com>
Wed, 22 Feb 2012 10:49:47 +0000 (11:49 +0100)
committerHarald Hoyer <harald@redhat.com>
Wed, 22 Feb 2012 14:15:22 +0000 (15:15 +0100)
modules.* should be in the kernel initramfs

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

index d0ead73..fa4be06 100755 (executable)
@@ -63,16 +63,6 @@ installkernel() {
 
     # force install of scsi_wait_scan
     hostonly='' instmods scsi_wait_scan
-}
-
-install() {
-    local _f i
-    [ -f /etc/modprobe.conf ] && dracut_install /etc/modprobe.conf
-    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"
-    inst_simple "$moddir/insmodpost.sh" /sbin/insmodpost.sh
 
     for _f in modules.builtin.bin modules.builtin; do
         [[ $srcmods/$_f ]] && break
@@ -84,4 +74,15 @@ install() {
     for _f in modules.builtin.bin modules.builtin modules.order; do
         [[ $srcmods/$_f ]] && inst_simple "$srcmods/$_f" "/lib/modules/$kernel/$_f"
     done
+
+}
+
+install() {
+    local _f i
+    [ -f /etc/modprobe.conf ] && dracut_install /etc/modprobe.conf
+    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"
+    inst_simple "$moddir/insmodpost.sh" /sbin/insmodpost.sh
 }