X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=dracut%2F90zfs%2Fmount-zfs.sh.in;h=2d2afd879f99741147cc7bd1a8bc47af8b6817d4;hb=c39b2786ac98ab87d6dda00aa83b399ed175055a;hp=49d68466c556b6e3db65ca5c91a85b88150dba08;hpb=f021fe194fec75ba1196638ca00301ba3b54ae85;p=zfs.git diff --git a/dracut/90zfs/mount-zfs.sh.in b/dracut/90zfs/mount-zfs.sh.in index 49d6846..2d2afd8 100755 --- a/dracut/90zfs/mount-zfs.sh.in +++ b/dracut/90zfs/mount-zfs.sh.in @@ -18,13 +18,13 @@ case "$root" in # Might be imported by the kernel module, so try searching before # we import anything. - zfsbootfs=`zpool list -H -o bootfs | sed 'q'` + zfsbootfs=`zpool list -H -o bootfs | sed -n '/-/ !p' | sed 'q'` if [ "$?" != "0" ] || [ "$zfsbootfs" = "" ] || \ [ "$zfsbootfs" = "no pools available" ] ; then # Not there, so we need to import everything. info "ZFS: Attempting to import additional pools." zpool import -N -a ${ZPOOL_FORCE} - zfsbootfs=`zpool list -H -o bootfs | sed 'q'` + zfsbootfs=`zpool list -H -o bootfs | sed -n '/-/ !p' | sed 'q'` if [ "$?" != "0" ] || [ "$zfsbootfs" = "" ] || \ [ "$zfsbootfs" = "no pools available" ] ; then rootok=0