mirror_zfs/dracut/90zfs
Zachary Bedell a4719e54e8 Catch return errors from zpool commands
This fixes a bug that can effect first reboot after install
using Dracut.  The Dracut module didn't check the return
value from several calls to z* functions.  This resulted in
"Using no pools available as root" on boot if the ZFS module
didn't auto-import the pools.  It's most likely to happen on
initial restart after a fresh install & requires juggling in
the Dracut emergency holographic shell to fix.

This patch checks return codes & output from zpool list and
related functions and correctly falls into the explicit zpool
import code branch if the module didn't import the pool at load.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
2011-07-25 10:43:44 -07:00
..
90-zfs.rules Update for Dracut-010 2011-07-06 09:20:28 -07:00
Makefile.am Update for Dracut-010 2011-07-06 09:20:28 -07:00
Makefile.in Provide a rc.d script for archlinux 2011-07-11 14:12:23 -07:00
module-setup.sh Soft to hard tabs 2011-07-25 10:42:07 -07:00
mount-zfs.sh Catch return errors from zpool commands 2011-07-25 10:43:44 -07:00
parse-zfs.sh Soft to hard tabs 2011-07-25 10:42:07 -07:00