Problem was:
Fresh install on UEFI-enabled laptop did not boot, neither in UFS auto-mode nor in ZFS.
For UFS auto-mode, I've found out that partition created by bsdinstaller was not detected as valid boot device. Probably due to its size, as this is the only difference between that and USB stick*
ZFS installation, however, my system could detect EFI partiiton as proper boot device, but did not create a valid boot option for it.
My UEFI requested some bizzare fsx:\path\filename.efi thing, which from google should be fs[ID of partition]:\path\bootx64.efi. After much playing around, I've found out that in fact it did not need fsx prefix (nor fs0), and \efi\boot\bootx64.efi path was sufficient to boot the machine.
*: ZFS default installation creates 800k efi partition. UFS default installation creates 200m efi partition. Same 800k for USB installation stick.
Fresh install on UEFI-enabled laptop did not boot, neither in UFS auto-mode nor in ZFS.
For UFS auto-mode, I've found out that partition created by bsdinstaller was not detected as valid boot device. Probably due to its size, as this is the only difference between that and USB stick*
ZFS installation, however, my system could detect EFI partiiton as proper boot device, but did not create a valid boot option for it.
My UEFI requested some bizzare fsx:\path\filename.efi thing, which from google should be fs[ID of partition]:\path\bootx64.efi. After much playing around, I've found out that in fact it did not need fsx prefix (nor fs0), and \efi\boot\bootx64.efi path was sufficient to boot the machine.
*: ZFS default installation creates 800k efi partition. UFS default installation creates 200m efi partition. Same 800k for USB installation stick.