From: Mariusz Tkaczyk Date: Thu, 26 Nov 2020 11:51:47 +0000 (+0100) Subject: fix(mdraid): add grow continue service X-Git-Tag: 052~124 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=29e269a5225ad8f658a8d7ef64d77d0c02f8e31d;p=thirdparty%2Fdracut.git fix(mdraid): add grow continue service 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 --- diff --git a/modules.d/90mdraid/module-setup.sh b/modules.d/90mdraid/module-setup.sh index f59d84a80..67acb047c 100755 --- a/modules.d/90mdraid/module-setup.sh +++ b/modules.d/90mdraid/module-setup.sh @@ -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