diff --git a/contrib/initramfs/scripts/zfs b/contrib/initramfs/scripts/zfs index e25ce68954..19b5e4a57a 100644 --- a/contrib/initramfs/scripts/zfs +++ b/contrib/initramfs/scripts/zfs @@ -341,9 +341,11 @@ mount_fs() # isn't the root fs. return 0 fi - ZFS_CMD="mount.zfs" # Last hail-mary: Hope 'rootmnt' is set! mountpoint="" + if [ "$mountpoint" = "legacy" ]; then + ZFS_CMD="mount.zfs" + fi else mountpoint="$mountpoint1" fi