Blame SOURCES/0210-dracut-functions.sh-do-not-force-require-modules.bui.patch

18971c
From 52923f5f2a3890449d59aa8a251f9116ab260e7f Mon Sep 17 00:00:00 2001
18971c
From: Harald Hoyer <harald@redhat.com>
18971c
Date: Thu, 5 Dec 2013 15:06:06 +0100
18971c
Subject: [PATCH] dracut-functions.sh: do not force require modules.builtin*
18971c
18971c
(cherry picked from commit b29cb51654db13706c7356aa827e554456b25b0a)
18971c
---
18971c
 dracut-functions.sh | 7 -------
18971c
 dracut.sh           | 2 +-
18971c
 2 files changed, 1 insertion(+), 8 deletions(-)
18971c
18971c
diff --git a/dracut-functions.sh b/dracut-functions.sh
18971c
index 00025567..8a0cd301 100755
18971c
--- a/dracut-functions.sh
18971c
+++ b/dracut-functions.sh
18971c
@@ -1455,13 +1455,6 @@ dracut_kernel_post() {
18971c
         wait $_pid
18971c
     fi
18971c
 
18971c
-    for _f in modules.builtin.bin modules.builtin; do
18971c
-        [[ $srcmods/$_f ]] && break
18971c
-    done || {
18971c
-        dfatal "No modules.builtin.bin and modules.builtin found!"
18971c
-        return 1
18971c
-    }
18971c
-
18971c
     for _f in modules.builtin.bin modules.builtin modules.order; do
18971c
         [[ $srcmods/$_f ]] && inst_simple "$srcmods/$_f" "/lib/modules/$kernel/$_f"
18971c
     done
18971c
diff --git a/dracut.sh b/dracut.sh
18971c
index 7d5c9e07..f560dd1e 100755
18971c
--- a/dracut.sh
18971c
+++ b/dracut.sh
18971c
@@ -518,7 +518,7 @@ if [[ $regenerate_all == "yes" ]]; then
18971c
 
18971c
     cd /lib/modules
18971c
     for i in *; do
18971c
-        [[ -f $i/modules.builtin ]] || continue
18971c
+        [[ -f $i/modules.dep ]] || [[ -f $i/modules.dep.bin ]] || continue
18971c
         dracut --kver="$i" "${dracut_args[@]}"
18971c
         ((ret+=$?))
18971c
     done