Add ppcboot FAT type. Needed to create a bootable powerpc image.

Differential Review: https://reviews.freebsd.org/D4407
This commit is contained in:
Warner Losh 2015-12-11 05:39:42 +00:00
parent efd2408900
commit 4224509a36
3 changed files with 6 additions and 0 deletions

View File

@ -45,6 +45,9 @@ __FBSDID("$FreeBSD$");
#ifndef DOSPTYP_FAT32
#define DOSPTYP_FAT32 0x0b
#endif
#ifndef DOSPTYP_PPCBOOT
#define DOSPTYP_PPCBOOT 0x41
#endif
#ifndef DOSPTYP_EFI
#define DOSPTYP_EFI 0xef
#endif
@ -56,6 +59,7 @@ static struct mkimg_alias mbr_aliases[] = {
{ ALIAS_FAT32, ALIAS_INT2TYPE(DOSPTYP_FAT32) },
{ ALIAS_FREEBSD, ALIAS_INT2TYPE(DOSPTYP_386BSD) },
{ ALIAS_NTFS, ALIAS_INT2TYPE(DOSPTYP_NTFS) },
{ ALIAS_PPCBOOT, ALIAS_INT2TYPE(DOSPTYP_PPCBOOT) },
{ ALIAS_NONE, 0 } /* Keep last! */
};

View File

@ -61,6 +61,7 @@ static struct {
{ "freebsd-zfs", ALIAS_FREEBSD_ZFS },
{ "mbr", ALIAS_MBR },
{ "ntfs", ALIAS_NTFS },
{ "prepboot", ALIAS_PPCBOOT },
{ NULL, ALIAS_NONE } /* Keep last! */
};

View File

@ -47,6 +47,7 @@ enum alias {
ALIAS_FREEBSD_ZFS,
ALIAS_MBR,
ALIAS_NTFS,
ALIAS_PPCBOOT,
/* end */
ALIAS_COUNT /* Keep last! */
};