Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Jan 2015 21:22:19 +0000 (UTC)
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r277950 - head/usr.sbin/bsdinstall/partedit
Message-ID:  <201501302122.t0ULMJUe082753@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nwhitehorn
Date: Fri Jan 30 21:22:18 2015
New Revision: 277950
URL: https://svnweb.freebsd.org/changeset/base/277950

Log:
  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.

Modified:
  head/usr.sbin/bsdinstall/partedit/partedit_x86.c

Modified: head/usr.sbin/bsdinstall/partedit/partedit_x86.c
==============================================================================
--- head/usr.sbin/bsdinstall/partedit/partedit_x86.c	Fri Jan 30 19:47:25 2015	(r277949)
+++ head/usr.sbin/bsdinstall/partedit/partedit_x86.c	Fri Jan 30 21:22:18 2015	(r277950)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501302122.t0ULMJUe082753>