freebsd-skq/usr.sbin/bsdinstall/partedit
allanjude c4c1f5e8fd Add support for two workarounds for known issues booting GPT in legacy mode on some hardware
For Lenovo laptops with buggy bios (x220, t420, t520):
	Write the 0xee entry into the second slot in the pmbr instead of the first

For some Dell and HP models:
	The BIOS gives a warning message when booting in legacy mode from a GPT partitioned disk where the 0xee partition in the pmbr is not flagged active
	For models known to have this problem, mark the pmbr active during installation

Use smbios data to identify machines known to be affected by any of the above, and offer the user the option to apply the workaround

In bsdinstall's ufs auto mode (autopart partition wizard):
	Allow users to select which type of partition table to use
	Keep current defaults: MBR for BIOS, GPT for UEFI
	This allows users to choose GPT for legacy boot if they wish

PR:		184910
PR:		194359
Reviewed by:	Michael Dexter
Approved by:	marcel
MFC after:	3 days
X-MFC-With:	r285594
Relnotes:	yes
Sponsored by:	ScaleEngine Inc.
Differential Revision:	https://reviews.freebsd.org/D3091
2015-07-18 18:49:44 +00:00
..
diskeditor.c Fix bindings of keys when in the partition editor. By adding the usual input binding to the "partlist" sub window. 2013-06-17 15:16:14 +00:00
diskeditor.h
gpart_ops.c Add support for two workarounds for known issues booting GPT in legacy mode on some hardware 2015-07-18 18:49:44 +00:00
Makefile Convert usr.sbin to LIBADD 2014-11-25 16:57:27 +00:00
Makefile.depend Add META_MODE support. 2015-06-13 19:20:56 +00:00
part_wizard.c Add support for two workarounds for known issues booting GPT in legacy mode on some hardware 2015-07-18 18:49:44 +00:00
partedit_generic.c Add ZFS support to the bsdinstall partition editor and sade. 2014-09-13 18:24:54 +00:00
partedit_pc98.c Add ZFS support to the bsdinstall partition editor and sade. 2014-09-13 18:24:54 +00:00
partedit_powerpc.c Add ZFS support to the bsdinstall partition editor and sade. 2014-09-13 18:24:54 +00:00
partedit_sparc64.c Add ZFS support to the bsdinstall partition editor and sade. 2014-09-13 18:24:54 +00:00
partedit_x86.c Use MBR by default on BIOS systems. An increasing number of motherboards 2015-01-30 21:22:18 +00:00
partedit.c Add support for two workarounds for known issues booting GPT in legacy mode on some hardware 2015-07-18 18:49:44 +00:00
partedit.h Add support for two workarounds for known issues booting GPT in legacy mode on some hardware 2015-07-18 18:49:44 +00:00
sade.8 Add ZFS support to the bsdinstall partition editor and sade. 2014-09-13 18:24:54 +00:00
scripted.c Add ZFS support to the bsdinstall partition editor and sade. 2014-09-13 18:24:54 +00:00