File 0505-Allow-booting-from-degraded-MD-RAID-arrays.patch of Package dracut.13287

From a113e853f71050aa6f05982ecf16660603f98825 Mon Sep 17 00:00:00 2001
From: Daniel Molkentin <dmolkentin@suse.com>
Date: Mon, 30 Jan 2017 11:10:40 +0100
Subject: [PATCH] Allow booting from degraded MD RAID arrays

bnc#1017695
---
 modules.d/90mdraid/module-setup.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/modules.d/90mdraid/module-setup.sh b/modules.d/90mdraid/module-setup.sh
index 13ef9fe..962b3a4 100755
--- a/modules.d/90mdraid/module-setup.sh
+++ b/modules.d/90mdraid/module-setup.sh
@@ -119,6 +119,12 @@ install() {
         if [ -e $systemdsystemunitdir/mdmon@.service ]; then
             inst_simple $systemdsystemunitdir/mdmon@.service
         fi
+        if [ -e $systemdsystemunitdir/mdadm-last-resort@.service ]; then
+            inst_simple $systemdsystemunitdir/mdadm-last-resort@.service
+        fi
+        if [ -e $systemdsystemunitdir/mdadm-last-resort@.timer ]; then
+            inst_simple $systemdsystemunitdir/mdadm-last-resort@.timer
+        fi
     fi
     inst_hook pre-shutdown 30 "$moddir/mdmon-pre-shutdown.sh"
 }
-- 
2.10.2

openSUSE Build Service is sponsored by