File 0321-Allow-booting-from-degraded-MD-RAID-arrays.patch of Package dracut.6321
From f582aad5ae46ffc2fbda294c4165464b8dcbf688 Mon Sep 17 00:00:00 2001
From: Daniel Molkentin <dmolkentin@suse.com>
Date: Tue, 31 Jan 2017 12:26:19 +0100
Subject: [PATCH 1/2] Allow booting from degraded MD RAID arrays
bnc#1017695
---
modules.d/90mdraid/module-setup.sh | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/modules.d/90mdraid/module-setup.sh b/modules.d/90mdraid/module-setup.sh
index da464b8..28e2791 100755
--- a/modules.d/90mdraid/module-setup.sh
+++ b/modules.d/90mdraid/module-setup.sh
@@ -132,6 +132,13 @@ 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