gpart: add EFI alias for MBR partition scheme

Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D15870
This commit is contained in:
emaste 2018-06-17 20:10:48 +00:00
parent 7896c4c978
commit 01a87b42b7
3 changed files with 8 additions and 4 deletions

View File

@ -24,7 +24,7 @@
.\" .\"
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd June 11, 2018 .Dd June 17, 2018
.Dt GPART 8 .Dt GPART 8
.Os .Os
.Sh NAME .Sh NAME
@ -630,9 +630,11 @@ The scheme-specific type is
.It Cm efi .It Cm efi
The system partition for computers that use the Extensible Firmware The system partition for computers that use the Extensible Firmware
Interface (EFI). Interface (EFI).
In such cases, the GPT partitioning scheme is used and the The scheme-specific types are
actual partition type for the system partition can also be specified as .Qq Li "!239"
.Qq Li "!c12a7328-f81f-11d2-ba4b-00a0c93ec93b" . for MBR, and
.Qq Li "!c12a7328-f81f-11d2-ba4b-00a0c93ec93b"
for GPT.
.It Cm freebsd .It Cm freebsd
A A
.Fx .Fx

View File

@ -135,6 +135,7 @@ static struct g_part_ebr_alias {
int alias; int alias;
} ebr_alias_match[] = { } ebr_alias_match[] = {
{ DOSPTYP_386BSD, G_PART_ALIAS_FREEBSD }, { DOSPTYP_386BSD, G_PART_ALIAS_FREEBSD },
{ DOSPTYP_EFI, G_PART_ALIAS_EFI },
{ DOSPTYP_FAT32, G_PART_ALIAS_MS_FAT32 }, { DOSPTYP_FAT32, G_PART_ALIAS_MS_FAT32 },
{ DOSPTYP_FAT32LBA, G_PART_ALIAS_MS_FAT32LBA }, { DOSPTYP_FAT32LBA, G_PART_ALIAS_MS_FAT32LBA },
{ DOSPTYP_LINLVM, G_PART_ALIAS_LINUX_LVM }, { DOSPTYP_LINLVM, G_PART_ALIAS_LINUX_LVM },

View File

@ -130,6 +130,7 @@ static struct g_part_mbr_alias {
{ DOSPTYP_386BSD, G_PART_ALIAS_FREEBSD }, { DOSPTYP_386BSD, G_PART_ALIAS_FREEBSD },
{ DOSPTYP_APPLE_BOOT, G_PART_ALIAS_APPLE_BOOT }, { DOSPTYP_APPLE_BOOT, G_PART_ALIAS_APPLE_BOOT },
{ DOSPTYP_APPLE_UFS, G_PART_ALIAS_APPLE_UFS }, { DOSPTYP_APPLE_UFS, G_PART_ALIAS_APPLE_UFS },
{ DOSPTYP_EFI, G_PART_ALIAS_EFI },
{ DOSPTYP_EXT, G_PART_ALIAS_EBR }, { DOSPTYP_EXT, G_PART_ALIAS_EBR },
{ DOSPTYP_EXTLBA, G_PART_ALIAS_EBR }, { DOSPTYP_EXTLBA, G_PART_ALIAS_EBR },
{ DOSPTYP_FAT16, G_PART_ALIAS_MS_FAT16 }, { DOSPTYP_FAT16, G_PART_ALIAS_MS_FAT16 },