]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
90kernel-modules/module-setup.sh: install modules.order
authorHarald Hoyer <harald@redhat.com>
Fri, 20 Jan 2012 11:06:41 +0000 (12:06 +0100)
committerHarald Hoyer <harald@redhat.com>
Fri, 20 Jan 2012 11:06:41 +0000 (12:06 +0100)
Also install modules.order and all modules.builtin*

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

index 257b3bc95f42849da9218328e0ee6feb47181a53..78884289d6a4aa18974bc6a5a3a95ad5d2323b32 100755 (executable)
@@ -68,7 +68,7 @@ installkernel() {
 }
 
 install() {
-    local _f
+    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"
@@ -76,13 +76,14 @@ install() {
     inst_hook cmdline 01 "$moddir/parse-kernel.sh"
     inst_simple "$moddir/insmodpost.sh" /sbin/insmodpost.sh
 
-    local f
-
     for _f in modules.builtin.bin modules.builtin; do
-        [[ $srcmods/$_f ]] && inst_simple "$srcmods/$_f" "/lib/modules/$kernel/$_f" \
-            && break
+        [[ $srcmods/$_f ]] && break
     done || {
         dfatal "No modules.builtin.bin and modules.builtin found!"
         return 1
     }
+
+    for _f in modules.builtin.bin modules.builtin modules.order; do
+        [[ $srcmods/$_f ]] && inst_simple "$srcmods/$_f" "/lib/modules/$kernel/$_f"
+    done
 }