Blame SOURCES/0023-dracut.sh-do-not-bail-out-if-kernel-modules-dir-is-m.patch

a56a5e
From f0df0f3fcd0e79a697ec8bd45b9ce2e420f2820a Mon Sep 17 00:00:00 2001
90b079
From: Harald Hoyer <harald@redhat.com>
90b079
Date: Tue, 8 Oct 2013 15:03:40 +0200
90b079
Subject: [PATCH] dracut.sh: do not bail out, if kernel modules dir is missing
90b079
90b079
and only print a warning message
90b079
---
90b079
 dracut.sh | 11 ++++++-----
90b079
 1 file changed, 6 insertions(+), 5 deletions(-)
90b079
90b079
diff --git a/dracut.sh b/dracut.sh
1755ca
index e135dfc8..d9533dd0 100755
90b079
--- a/dracut.sh
90b079
+++ b/dracut.sh
90b079
@@ -496,17 +496,18 @@ if [[ $regenerate_all == "yes" ]]; then
90b079
         ((ret+=$?))
90b079
     done
90b079
     exit $ret
90b079
-elif [[ $kernel ]]; then
90b079
-    if ! [[ -d /lib/modules/$kernel ]] && [[ $no_kernel != yes ]]; then
90b079
-        printf -- "Kernel version $kernel has no modules in /lib/modules/$kernel\n" >&2
90b079
-        exit 1
90b079
-    fi
90b079
 fi
90b079
 
90b079
 if ! [[ $kernel ]]; then
90b079
     kernel=$(uname -r)
90b079
 fi
90b079
 
90b079
+if [[ $kernel ]]; then
90b079
+    if ! [[ -d /lib/modules/$kernel ]] && [[ $no_kernel != yes ]]; then
90b079
+        printf -- "Kernel version $kernel has no module directory /lib/modules/$kernel\n" >&2
90b079
+    fi
90b079
+fi
90b079
+
90b079
 if ! [[ $outfile ]]; then
90b079
     [[ -f /etc/machine-id ]] && read MACHINE_ID < /etc/machine-id
90b079