File 0300-mdraid_tell_mainloop_if_we_make_progress.patch of Package dracut.892

From: NeilBrown <neilb@suse.de>
Subject: mdraid/mdraid_start.sh: tell mainloop if we make progress.
References: bnc#932735
Patch-Mainline: 
Git-commit: 3b82ac169694cf21e6ebd4dbfb6efd89539da10e
Git-repo: git.kernel.org/pub/scm/boot/dracut/dracut.git

Signed-off-by: Thomas Renninger <trenn@suse.de>

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>

Index: dracut-037/modules.d/90mdraid/mdraid_start.sh
===================================================================
--- dracut-037.orig/modules.d/90mdraid/mdraid_start.sh	2015-06-03 18:44:05.926126393 +0200
+++ dracut-037/modules.d/90mdraid/mdraid_start.sh	2015-06-03 18:44:11.206422671 +0200
@@ -29,6 +29,7 @@
 
         _path_d="${_path_s%/*}/degraded"
         [ ! -r "$_path_d" ] && continue
+        > $hookdir/initqueue/work
     done
 }