Commit 30afbb02 authored by Mike Hibler's avatar Mike Hibler

Recognize EFI system partition and handle as FAT.

parent 9dd61e7e
/*
* Copyright (c) 2000-2015 University of Utah and the Flux Group.
* Copyright (c) 2000-2016 University of Utah and the Flux Group.
*
* {{{EMULAB-LICENSE
*
......@@ -137,10 +137,10 @@ struct gptmap gptmap[] = {
{GPT_ENT_TYPE_FREEBSD_UFS, "FreeBSD UFS", IZTYPE_FBSDNOLABEL, 0xA503},
{GPT_ENT_TYPE_LINUX_DATA, "Linux filesystem", IZTYPE_LINUX, 0x8300},
{GPT_ENT_TYPE_LINUX_SWAP, "Linux swap", IZTYPE_LINSWP, 0x8200},
{GPT_ENT_TYPE_BIOS_BOOT, "BIOS boot partition", IZTYPE_BIOSBOOT, 0xEF02},
{GPT_ENT_TYPE_BIOS_BOOT, "Grub BIOS boot partition", IZTYPE_BIOSBOOT, 0xEF02},
{GPT_ENT_TYPE_FREEBSD_BOOT, "FreeBSD boot", IZTYPE_FBSDBOOT, 0xA501},
{GPT_ENT_TYPE_FREEBSD_SWAP, "FreeBSD swap", IZTYPE_FBSDSWAP, 0xA502},
{GPT_ENT_TYPE_EFI, "EFI System", IZTYPE_UNKNOWN, 0xEF00},
{GPT_ENT_TYPE_EFI, "EFI System", IZTYPE_EFISYSTEM, 0xEF00},
{GPT_ENT_TYPE_MBR, "MBR partition scheme", IZTYPE_UNKNOWN, 0xEF01},
{GPT_ENT_TYPE_FREEBSD_NANDFS, "FREEBSD_NANDFS", IZTYPE_UNKNOWN, 0xFFFF},
{GPT_ENT_TYPE_FREEBSD_VINUM, "FreeBSD Vinum/RAID", IZTYPE_UNKNOWN, 0xA505},
......
/*
* Copyright (c) 2000-2014 University of Utah and the Flux Group.
* Copyright (c) 2000-2016 University of Utah and the Flux Group.
*
* {{{EMULAB-LICENSE
*
......@@ -52,6 +52,7 @@ static struct sliceinfo fsmap[] = {
{ IZTYPE_FAT16L_LBA, "FAT16 LBA", read_fatslice },
{ IZTYPE_FAT32, "FAT32", read_fatslice },
{ IZTYPE_FAT32_LBA, "FAT32 LBA", read_fatslice },
{ IZTYPE_EFISYSTEM, "EFI System (FAT)", read_fatslice },
#endif
{ IZTYPE_EXT, "DOSEXT", 0 },
{ IZTYPE_EXT_LBA, "DOSEXT LBA", 0 },
......
/*
* Copyright (c) 2000-2015 University of Utah and the Flux Group.
* Copyright (c) 2000-2016 University of Utah and the Flux Group.
*
* {{{EMULAB-LICENSE
*
......@@ -53,6 +53,7 @@ typedef uint16_t iz_flags;
#define IZTYPE_386BSD 0xa5 /* Free/NetBSD */
#define IZTYPE_OPENBSD 0xa6 /* OpenBSD */
#define IZTYPE_PROTECTIVE 0xee /* GPT protective MBR */
#define IZTYPE_EFISYSTEM 0xef /* EFI system partition */
/* These have no corresponding MBR type (should be 0x100 or above) */
#define IZTYPE_FBSDBOOT 0xA501 /* FreeBSD Boot partition */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment