]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
mdraid/mdraid_start.sh: tell mainloop if we make progress.
authorNeilBrown <neilb@suse.de>
Thu, 26 Mar 2015 04:41:46 +0000 (15:41 +1100)
committerHarald Hoyer <harald@redhat.com>
Thu, 26 Mar 2015 15:38:36 +0000 (16:38 +0100)
mdraid_start is a number of scripts which run after a timeout.
If it makes progress, it should tell the main loop so that it
knows that it is worth waiting a bit longer.

So in that case, create the initqueue/work file which the main loop
checks for.

Signed-off-by: NeilBrown <neilb@suse.de>
modules.d/90mdraid/mdraid_start.sh

index 761e64f312d33e06dc3974d7b9a7089c6255c9c9..400ab5dc46c7962f70e0114fdebdfc08c57f056f 100755 (executable)
@@ -27,6 +27,7 @@ _md_force_run() {
 
         _path_d="${_path_s%/*}/degraded"
         [ ! -r "$_path_d" ] && continue
+        > $hookdir/initqueue/work
     done
 }