]> git.proxmox.com Git - mirror_zfs.git/blobdiff - contrib/initramfs/scripts/zfs
Revert "initramfs: use `mount.zfs` instead of `mount`"
[mirror_zfs.git] / contrib / initramfs / scripts / zfs
index 7f977a30f75bf649b6dd5379df626442bf3503f1..0a2bd2efda7a37d547065d5e5b946d6a98ab78fb 100644 (file)
@@ -344,7 +344,7 @@ mount_fs()
 
        # Need the _original_ datasets mountpoint!
        mountpoint=$(get_fs_value "$fs" mountpoint)
-       ZFS_CMD="mount.zfs -o zfsutil"
+       ZFS_CMD="mount -o zfsutil -t zfs"
        if [ "$mountpoint" = "legacy" ] || [ "$mountpoint" = "none" ]; then
                # Can't use the mountpoint property. Might be one of our
                # clones. Check the 'org.zol:mountpoint' property set in
@@ -361,7 +361,7 @@ mount_fs()
                        fi
                        # Don't use mount.zfs -o zfsutils for legacy mountpoint
                        if [ "$mountpoint" = "legacy" ]; then
-                               ZFS_CMD="mount.zfs"
+                               ZFS_CMD="mount -t zfs"
                        fi
                        # Last hail-mary: Hope 'rootmnt' is set!
                        mountpoint=""
@@ -944,7 +944,7 @@ mountroot()
                echo "       not specified on the kernel command line."
                echo ""
                echo "Manually mount the root filesystem on $rootmnt and then exit."
-               echo "Hint: Try:  mount.zfs -o zfsutil ${ZFS_RPOOL-rpool}/ROOT/system $rootmnt"
+               echo "Hint: Try:  mount -o zfsutil -t zfs ${ZFS_RPOOL-rpool}/ROOT/system $rootmnt"
                shell
        fi