summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdracut/90zfs/mount-zfs.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/dracut/90zfs/mount-zfs.sh b/dracut/90zfs/mount-zfs.sh
index 6b742e348..9c753d9e4 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