]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(mdraid): add grow continue service
authorMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Thu, 26 Nov 2020 11:51:47 +0000 (12:51 +0100)
committerHarald Hoyer <harald@hoyer.xyz>
Fri, 5 Feb 2021 09:59:50 +0000 (10:59 +0100)
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 and systemd will kill
it unconditionally after processing all events.

Add proper service to allow systemd to manage reshape correctly.

Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
modules.d/90mdraid/module-setup.sh

index f59d84a800e9b824fe69110de5a4a53ca8bc2a2b..67acb047c41bec249fc10b678f7fa7938bccbbf8 100755 (executable)
@@ -136,6 +136,9 @@ install() {
         if [ -e $dracutsysrootdir$systemdsystemunitdir/mdadm-last-resort@.timer ]; then
             inst_simple $systemdsystemunitdir/mdadm-last-resort@.timer
         fi
+        if [ -e $dracutsysrootdir$systemdsystemunitdir/mdadm-grow-continue@.service ]; then
+            inst_simple $systemdsystemunitdir/mdadm-grow-continue@.service
+        fi
     fi
     inst_hook pre-shutdown 30 "$moddir/mdmon-pre-shutdown.sh"
     dracut_need_initqueue