mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
bsdinstall: react to WORKAROUND_HYBRID to force UEFI install on BIOS boot
Also add branding name.
This commit is contained in:
parent
85f12b0e5c
commit
fbd2bda109
2 changed files with 4 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
OSNAME?= FreeBSD
|
||||
OSNAME?= OPNsense
|
||||
SUBDIR= distextract distfetch partedit runconsoles scripts
|
||||
SUBDIR_PARALLEL=
|
||||
SUBDIR_DEPEND_distfetch = distextract
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue