summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2018-07-19 10:01:20 -0300
committerRenato Botelho <renato@netgate.com>2018-07-19 10:01:20 -0300
commitcd0e4c8cf2587d4c52df0dfca16a71700a6f0997 (patch)
tree0f55a83683e2223745a437b655cb6f0c6929351e
parentaf4526707ed745cc532bc0b58c07ce0fe6dc36f5 (diff)
downloadFreeBSD-src-cd0e4c8cf2587d4c52df0dfca16a71700a6f0997.zip
FreeBSD-src-cd0e4c8cf2587d4c52df0dfca16a71700a6f0997.tar.gz
Revert "Revert "Use MBR by default on BIOS systems. An increasing number of motherboards""
This reverts commit 19b31289ee2c5a37cf6545693734a4f7dc792e9a.
-rw-r--r--usr.sbin/bsdinstall/partedit/partedit_x86.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/bsdinstall/partedit/partedit_x86.c b/usr.sbin/bsdinstall/partedit/partedit_x86.c
index e9da2d6..0197531 100644
--- a/usr.sbin/bsdinstall/partedit/partedit_x86.c
+++ b/usr.sbin/bsdinstall/partedit/partedit_x86.c
@@ -57,7 +57,10 @@ x86_bootmethod(void)
const char *
default_scheme(void)
{
- return ("GPT");
+ if (strcmp(x86_bootmethod(), "UEFI") == 0)
+ return ("GPT");
+ else
+ return ("MBR");
}
int
OpenPOWER on IntegriCloud