diff --git a/dracut/90zfs/mount-zfs.sh b/dracut/90zfs/mount-zfs.sh index 6b742e348c..9c753d9e4b 100755 --- a/dracut/90zfs/mount-zfs.sh +++ b/dracut/90zfs/mount-zfs.sh @@ -6,5 +6,11 @@ if [ "$rootfs" = "zfs" ]; then zfsrootfs=`echo "$root" | sed 's|^zfs:||'` zfspool=`echo "$zfsrootfs" | sed 's|/.*||g'` zpool import -N "$zfspool" - mount -o zfsutil -t "$rootfs" "$zfsrootfs" "$NEWROOT" && ROOTFS_MOUNTED=yes + mount -o zfsutil -t "$rootfs" "$zfsrootfs" "$NEWROOT" + if [ "$?" = "0" ] + then + ROOTFS_MOUNTED=yes + else + mount -t "$rootfs" "$zfsrootfs" "$NEWROOT" && ROOTFS_MOUNTED=yes + fi fi