X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;ds=inline;f=dracut%2F90zfs%2Fmount-zfs.sh;h=47d683331b29ed26f345687366cc99823093c552;hb=c4803a966367517d56d7b7a6becef841e44dabbd;hp=6b742e348cea6e412907e7339db1a9cda33dac4d;hpb=ae26d0465a234d7b340566287908c78fe24901e1;p=zfs.git diff --git a/dracut/90zfs/mount-zfs.sh b/dracut/90zfs/mount-zfs.sh index 6b742e3..47d6833 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