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

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