]> granicus.if.org Git - zfs/commit
Fix loop in Dracut shutdown script
authorLukas Wunner <lukas@wunner.de>
Wed, 4 Feb 2015 09:45:19 +0000 (10:45 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 9 Feb 2015 18:08:05 +0000 (10:08 -0800)
commit293d141ae4f6b2345249020b656cfc0ce007b9fa
tree0f13c47a62f2f09ffb69b186facec3beaf324566
parent33b4de513ee81c2a87e1b954a9544a5eec1f8f94
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
dracut/90zfs/export-zfs.sh.in