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
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to