[PATCH] mdraid: add grow continue service.

Mariusz Tkaczyk <[email protected]> Wed, 26 Aug 2020 09:52:59 +0200
Newsgroups org.kernel.vger.initramfs
Message-ID <[email protected]>
During raid assembly mdadm will call mdadm-grow-continue.service if reshape is
in progress.
If service doesn't exist then it is done via fork. But systemd will kill
it unconditionally after processing all events. 

Add proper service and allow systemd to manage reshape correctly.

Signed-off-by: Mariusz Tkaczyk <[email protected]>
---
 modules.d/90mdraid/module-setup.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules.d/90mdraid/module-setup.sh b/modules.d/90mdraid/module-setup.sh
index f59d84a8..67acb047 100755
--- a/modules.d/90mdraid/module-setup.sh
+++ b/modules.d/90mdraid/module-setup.sh
@@ -136,6 +136,9 @@ install() {
         if [ -e $dracutsysrootdir$systemdsystemunitdir/[email protected] ]; then
             inst_simple $systemdsystemunitdir/[email protected]
         fi
+        if [ -e $dracutsysrootdir$systemdsystemunitdir/[email protected] ]; then
+            inst_simple $systemdsystemunitdir/[email protected]
+        fi
     fi
     inst_hook pre-shutdown 30 "$moddir/mdmon-pre-shutdown.sh"
     dracut_need_initqueue
-- 
2.25.0