Fix boot failure in Dracut scripts.
authorZachary Bedell <zac@thebedells.org>
Sun, 18 Sep 2011 03:42:43 +0000 (23:42 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 26 Sep 2011 16:29:51 +0000 (09:29 -0700)
commitc39b2786ac98ab87d6dda00aa83b399ed175055a
treefe5b358849ed6d4588fa4089bb73f02c6843b9fd
parentf021fe194fec75ba1196638ca00301ba3b54ae85
Fix boot failure in Dracut scripts.

mount-zfs.sh script incorrectly parsed results from zpool list.  Correct
bootfs attribute was only found on systems with a single pool or where
the bootable pool's name alphabetized to before all other pool names.
Boot failed when the bootable pool's name came after other pools
(IE 'rpool' and 'mypool' would fail to find bootfs on rpool.)

Patch correctly discards pools whose bootfs attribute is blank ('-').

Signed-off-by: Zachary Bedell <zac@thebedells.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #402
dracut/90zfs/mount-zfs.sh.in