]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Allow booting from degraded MD RAID arrays 198/head
authorDaniel Molkentin <dmolkentin@suse.com>
Mon, 30 Jan 2017 10:10:40 +0000 (11:10 +0100)
committerDaniel Molkentin <dmolkentin@suse.com>
Mon, 30 Jan 2017 10:29:08 +0000 (11:29 +0100)
bnc#1017695

modules.d/90mdraid/module-setup.sh

index cecf3bf8e64b02e315131b21584c321891b3ffb8..9015fd31bc0e74e726943dda41b196cf19e788f1 100755 (executable)
@@ -130,6 +130,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"
     dracut_need_initqueue