summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2015-01-30 21:22:18 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2015-01-30 21:22:18 +0000
commit30a42c280eec3a4e23e3eab91b7e04cff697d312 (patch)
treeecb5f59d314b10c8c899b54bc8fed68a1e2b044f /usr.sbin
parentf0d5358d3efd3f839abb27c80fc2b9dfa835e998 (diff)
downloadFreeBSD-src-30a42c280eec3a4e23e3eab91b7e04cff697d312.zip
FreeBSD-src-30a42c280eec3a4e23e3eab91b7e04cff697d312.tar.gz
Use MBR by default on BIOS systems. An increasing number of motherboards
assume that GPT means UEFI boot, resulting in the installation of uninstallable systems. This needs a little more work before MFC, in particular based on disk size (> 2 TB + BIOS + MBR is not workable). That will come soon.
Diffstat (limited to 'usr.sbin')
-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 cc6a571..6a60678 100644
--- a/usr.sbin/bsdinstall/partedit/partedit_x86.c
+++ b/usr.sbin/bsdinstall/partedit/partedit_x86.c
@@ -51,7 +51,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