Created attachment 169099[details]
Patch against -CURRENT r297697
Hi,
Following this post :
https://lists.freebsd.org/pipermail/freebsd-hackers/2015-August/048141.html
(see "Pushing the limits"), here is a patch to enable a new boot type called "BIOS+UEFI". This special type will enable generic installations by creating both freebsd-boot and efi boot partitions, allowing the machine to reboot either in BIOS mode or in UEFI mode.
This patch also fixes creation of /tmp and /var/tmp to avoid problems with unattended installations (this will conflict with Bug 208568 - reduce requirements for zfs filesystems in zfsboot for unattended installations)
Best regards,
Ganael Laplanche.

A commit references this bug:
Author: allanjude
Date: Tue Apr 19 03:25:36 UTC 2016
New revision: 298243
URL: https://svnweb.freebsd.org/changeset/base/298243
Log:
Add a new installation type to bsdinstall/zfsboot: BIOS+UEFI
Installs both pmbr+gptzfsboot as well as boot1.efifat in separate partitions
The resulting system can be booted with either UEFI or BIOS/CSM.
Preference is controlled by the user's firmware boot settings.
This is now the default for zfsboot installs
PR: 208629
Submitted by: Galael LAPLANCHE <ganael.laplanche@corp.ovh.com> (original version)
Changes:
head/usr.sbin/bsdinstall/scripts/zfsboot