Blame 0039-90kernel-modules-module-setup.sh-install-modules.ord.patch

Harald Hoyer 83ebbb
From 2e7b6616814a3706f0c15bc20c7c8303463bcba0 Mon Sep 17 00:00:00 2001
Harald Hoyer 83ebbb
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 83ebbb
Date: Fri, 20 Jan 2012 12:06:41 +0100
Harald Hoyer 83ebbb
Subject: [PATCH] 90kernel-modules/module-setup.sh: install modules.order
Harald Hoyer 83ebbb
Harald Hoyer 83ebbb
Also install modules.order and all modules.builtin*
Harald Hoyer 83ebbb
---
Harald Hoyer 83ebbb
 modules.d/90kernel-modules/module-setup.sh |   11 ++++++-----
Harald Hoyer 83ebbb
 1 files changed, 6 insertions(+), 5 deletions(-)
Harald Hoyer 83ebbb
Harald Hoyer 83ebbb
diff --git a/modules.d/90kernel-modules/module-setup.sh b/modules.d/90kernel-modules/module-setup.sh
Harald Hoyer 83ebbb
index 257b3bc..7888428 100755
Harald Hoyer 83ebbb
--- a/modules.d/90kernel-modules/module-setup.sh
Harald Hoyer 83ebbb
+++ b/modules.d/90kernel-modules/module-setup.sh
Harald Hoyer 83ebbb
@@ -68,7 +68,7 @@ installkernel() {
Harald Hoyer 83ebbb
 }
Harald Hoyer 83ebbb
 
Harald Hoyer 83ebbb
 install() {
Harald Hoyer 83ebbb
-    local _f
Harald Hoyer 83ebbb
+    local _f i
Harald Hoyer 83ebbb
     [ -f /etc/modprobe.conf ] && dracut_install /etc/modprobe.conf
Harald Hoyer 83ebbb
     for i in $(find -L /etc/modprobe.d/ -maxdepth 1 -type f -name '*.conf'); do
Harald Hoyer 83ebbb
         inst_simple "$i"
Harald Hoyer 83ebbb
@@ -76,13 +76,14 @@ install() {
Harald Hoyer 83ebbb
     inst_hook cmdline 01 "$moddir/parse-kernel.sh"
Harald Hoyer 83ebbb
     inst_simple "$moddir/insmodpost.sh" /sbin/insmodpost.sh
Harald Hoyer 83ebbb
 
Harald Hoyer 83ebbb
-    local f
Harald Hoyer 83ebbb
-
Harald Hoyer 83ebbb
     for _f in modules.builtin.bin modules.builtin; do
Harald Hoyer 83ebbb
-        [[ $srcmods/$_f ]] && inst_simple "$srcmods/$_f" "/lib/modules/$kernel/$_f" \
Harald Hoyer 83ebbb
-            && break
Harald Hoyer 83ebbb
+        [[ $srcmods/$_f ]] && break
Harald Hoyer 83ebbb
     done || {
Harald Hoyer 83ebbb
         dfatal "No modules.builtin.bin and modules.builtin found!"
Harald Hoyer 83ebbb
         return 1
Harald Hoyer 83ebbb
     }
Harald Hoyer 83ebbb
+
Harald Hoyer 83ebbb
+    for _f in modules.builtin.bin modules.builtin modules.order; do
Harald Hoyer 83ebbb
+        [[ $srcmods/$_f ]] && inst_simple "$srcmods/$_f" "/lib/modules/$kernel/$_f"
Harald Hoyer 83ebbb
+    done
Harald Hoyer 83ebbb
 }