File 0301-systemd_initqueue_continue_waiting_if_any_timeout_script_makes_progress.patch of Package dracut.892

From: NeilBrown <>
Subject: systemd/dracut-iniqueue - continue waiting if any timeout script makes progress
References: bnc#932735
Git-commit: 97cb17c792fd7fd65444a93e58970052ff812768

Signed-off-by: Thomas Renninger <>

A number of timeout scripts can be registered.  If any one of them
makes progress - e.g. assembles a degraded md array - then
the main loop should wait a bit longer rather than pressing forward.

This is particularly important is resume-from-hibernate requires a
degraded md array.  Both the script to forcibly assemble the md array
and the script to abort hibernation if the device doesn't appear
are 'timeout' scripts.  There needs to be a reasonable delay between
these running.

So: if any script has indicated that progress was made, break of out
the loop and go back to normal waiting.

Signed-off-by: NeilBrown <>

Index: dracut-037/modules.d/98systemd/
--- dracut-037.orig/modules.d/98systemd/	2014-03-19 17:16:08.000000000 +0100
+++ dracut-037/modules.d/98systemd/	2015-06-03 18:18:56.193582052 +0200
@@ -62,6 +62,7 @@
             job=$job . $job
             udevadm settle --timeout=0 >/dev/null 2>&1 || main_loop=0
             [ -f $hookdir/initqueue/work ] && main_loop=0
+            [ $main_loop -eq 0 ] && break
openSUSE Build Service is sponsored by