mdraid: add grow continue service.
PATCH 1/1 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. But systemd will kill it unconditionally after processing all events.
Add proper service and allow systemd to manage reshape correctly.
--- modules.d/90mdraid/module-setup.sh | 3 +++ 1 file changed, 3 insertions(+)
modules.d/90mdraid/module-setup.sh +3 -0
@@ -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
Signature · 1 line
2.25.0
A message that is not in the archive (sent off-list or not yet received): 20200826075259.9416-1-mariusz.tkaczyk-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org
Hi,
Could someone guide me? Did I send patch correctly? Is there another place where dracut is maintained?
TIA.
Mariusz
-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Mariusz Tkaczyk
Sent: Wednesday, August 26, 2020 9:53 AM
To: [email protected]
Cc: [email protected]
Subject: [PATCH] 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. But systemd will kill it unconditionally after processing all events.
Add proper service and allow systemd to manage reshape correctly.
--- modules.d/90mdraid/module-setup.sh | 3 +++ 1 file changed, 3 insertions(+)
modules.d/90mdraid/module-setup.sh +3 -0
@@ -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