]> git.ipfire.org Git - thirdparty/dracut.git/commit
systemd/dracut-iniqueue - continue waiting if any timeout script makes progress
authorNeilBrown <neilb@suse.de>
Thu, 26 Mar 2015 04:41:47 +0000 (15:41 +1100)
committerHarald Hoyer <harald@redhat.com>
Thu, 26 Mar 2015 15:38:36 +0000 (16:38 +0100)
commit97cb17c792fd7fd65444a93e58970052ff812768
tree764d16b246679ad06c017ab475c440dcf3a360b2
parent3b82ac169694cf21e6ebd4dbfb6efd89539da10e
systemd/dracut-iniqueue - continue waiting if any timeout script makes progress

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 <neilb@suse.de>
modules.d/98dracut-systemd/dracut-initqueue.sh