]> git.ipfire.org Git - thirdparty/dracut.git/commit
shutdown/shutdown.sh: loop over shutdown hooks until all succeed 28/head
authorLukas Wunner <lukas@wunner.de>
Mon, 6 Oct 2014 11:43:58 +0000 (13:43 +0200)
committerLukas Wunner <lukas@wunner.de>
Mon, 6 Oct 2014 11:43:58 +0000 (13:43 +0200)
commitb09faad8779f5579b2f1c559edf7c0570e8d50ac
tree3a661fe3ab4b330f65b3a1e9e15751f54fc0ed28
parent7e50abfdb8ab51a2086b60635bfc3cc7f9db03df
shutdown/shutdown.sh: loop over shutdown hooks until all succeed

Up until now, _check_shutdown() returns true if at least one of
the shutdown hooks succeeded. Change this to only return true if
*all* succeeded. To prevent an infinite loop, introduce an upper
bound of 40 iterations.
modules.d/99shutdown/shutdown.sh