bsdinstall: react to WORKAROUND_HYBRID to force UEFI install on BIOS boot

Also add branding name.
This commit is contained in:
Franco Fichtner 2022-01-06 13:37:22 +01:00
parent 85f12b0e5c
commit fbd2bda109
2 changed files with 4 additions and 2 deletions

View file

@ -1,5 +1,5 @@
OSNAME?= FreeBSD
OSNAME?= OPNsense
SUBDIR= distextract distfetch partedit runconsoles scripts
SUBDIR_PARALLEL=
SUBDIR_DEPEND_distfetch = distextract

View file

@ -28,6 +28,7 @@
#include <sys/types.h>
#include <sys/sysctl.h>
#include <stdlib.h>
#include <string.h>
#include "partedit.h"
@ -111,7 +112,8 @@ const char *
bootpart_type(const char *scheme, const char **mountpoint)
{
if (strcmp(x86_bootmethod(), "UEFI") == 0) {
if (strcmp(x86_bootmethod(), "UEFI") == 0 ||
getenv("WORKAROUND_HYBRID")) {
*mountpoint = "/boot/efi";
return ("efi");
}