File 0178-Restore-handling-of-c.patch of Package dracut.376

From cd887ea614bc9f86f7e12101cf77f9f27e8b642f Mon Sep 17 00:00:00 2001
From: Marcus Meissner <meissner@suse.de>
Date: Mon, 23 Mar 2015 16:25:42 +0100
Subject: Restore handling of '-c'

Leave handling of the -c option in, in case dracut modules,
like fips, used instmod -c -s

References: bsc#886839

Signed-off-by: Marcus Meissner <meissner@suse.de>
---
 dracut-functions.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/dracut-functions.sh b/dracut-functions.sh
index 338714c..8807073 100755
--- a/dracut-functions.sh
+++ b/dracut-functions.sh
@@ -1644,6 +1644,12 @@ instmods() {
     local _fderr=9
     local _check=yes
     local _silent=no
+
+    # Leave this in for compatibility reasons.
+    if [[ $1 = '-c' ]]; then
+        _check=yes
+        shift
+    fi
     if [[ $1 = '-s' ]]; then
         _check=no
         _silent=yes
-- 
1.8.4.5

openSUSE Build Service is sponsored by