850b9d75be
- Allow booting from degrated MD arrays with systemd * add 0505-Allow-booting-from-degraded-MD-RAID-arrays.patch OBS-URL: https://build.opensuse.org/request/show/453414 OBS-URL: https://build.opensuse.org/package/show/Base:System/dracut?expand=0&rev=281
31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
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
|
|
|