From 62340c0e6ec4f76ec6641508f4bb3a99d3592419 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Thu, 6 Jan 2022 13:37:22 +0100 Subject: [PATCH] bsdinstall: react to WORKAROUND_HYBRID to force UEFI install on BIOS boot --- usr.sbin/bsdinstall/partedit/partedit_x86.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.sbin/bsdinstall/partedit/partedit_x86.c b/usr.sbin/bsdinstall/partedit/partedit_x86.c index 6983188ba34..8ed13bc683c 100644 --- a/usr.sbin/bsdinstall/partedit/partedit_x86.c +++ b/usr.sbin/bsdinstall/partedit/partedit_x86.c @@ -113,7 +113,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"); }