HomeFreeBSD

Fix loop in Dracut shutdown script

Description

Fix loop in Dracut shutdown script

The shell executes each command of a pipeline in a subshell,
thus $ret always had the same value after the while loop that
it had before the loop (http://mywiki.wooledge.org/BashFAQ/024),
signaling success even if some of the zpools could not be exported.

Signed-off-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #3083

Details

Provenance
Lukas Wunner <lukas@wunner.de>Authored on Feb 4 2015, 9:45 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Feb 9 2015, 6:08 PM
Parents
rG33b4de513ee8: Illumos 5311 - traverse_dnode may report success when it should not
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG293d141ae4f6: Fix loop in Dracut shutdown script (authored by Lukas Wunner <lukas@wunner.de>).Feb 9 2015, 6:08 PM