@balanga said
Yes, you can.
The ZFS pool is mounted by the
zpool-create(8) altroot property on /mnt, but the root dataset won't be mounted (see "-m none" in the script). It's not possible, the installer media is a read-only file system, no mount point can be created.
You don't need to extract anything.
Boot the installer media (from Ventoy if you like), proceed with the menu-guided installation as usual, choose at the "Select Installation Type" "Distribution Sets" (kernel.txz, base.txz, etc., internet connection needed, they are not included on the *-disc1.iso), or pkgbase "Packages (Tech Preview), at the "Partitioning" menu enter "Shell", eventually edit your partitions, execute the shell script I posted,
exit the "Shell". The installation proceeds menu guided, distribution files (or pkgbase packages) are installed, system is configured.
Just check at the end ("Manual Configuration" menu, < Yes >) /boot/loader.conf (for zfs_load=), /etc/fstab (for swap, efi), /etc/sysctl.conf (for vfs.zfs.vdev.min_auto_ashift=12), /etc/rc.conf (for zfs_enable=).