From 0c5fbfcd26193097fd03b9419adbe1756dcb2418 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Wed, 18 Feb 2015 19:42:37 +0000 Subject: [PATCH] MFC r276893: mkimg: Add MBR EFI partition type Sponsored by: The FreeBSD Foundation --- usr.bin/mkimg/mbr.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/usr.bin/mkimg/mbr.c b/usr.bin/mkimg/mbr.c index c1b7822efe30..9d737a574861 100644 --- a/usr.bin/mkimg/mbr.c +++ b/usr.bin/mkimg/mbr.c @@ -42,9 +42,13 @@ __FBSDID("$FreeBSD$"); #ifndef DOSPTYP_FAT32 #define DOSPTYP_FAT32 0x0b #endif +#ifndef DOSPTYP_EFI +#define DOSPTYP_EFI 0xef +#endif static struct mkimg_alias mbr_aliases[] = { { ALIAS_EBR, ALIAS_INT2TYPE(DOSPTYP_EXT) }, + { ALIAS_EFI, ALIAS_INT2TYPE(DOSPTYP_EFI) }, { ALIAS_FAT32, ALIAS_INT2TYPE(DOSPTYP_FAT32) }, { ALIAS_FREEBSD, ALIAS_INT2TYPE(DOSPTYP_386BSD) }, { ALIAS_NONE, 0 } /* Keep last! */