git: f7aebfbe5c0a - main - Add GPT PREP-boot type to mkimg(1) from geom_gpt.

Nathan Whitehorn nwhitehorn at FreeBSD.org
Wed Feb 24 15:33:31 UTC 2021


The branch main has been updated by nwhitehorn:

URL: https://cgit.FreeBSD.org/src/commit/?id=f7aebfbe5c0ab63dbb3d134d143ccff2c2b278bb

commit f7aebfbe5c0ab63dbb3d134d143ccff2c2b278bb
Author:     Nathan Whitehorn <nwhitehorn at FreeBSD.org>
AuthorDate: 2021-02-24 15:31:44 +0000
Commit:     Nathan Whitehorn <nwhitehorn at FreeBSD.org>
CommitDate: 2021-02-24 15:31:44 +0000

    Add GPT PREP-boot type to mkimg(1) from geom_gpt.
    
    This partition type can be used to boot some PowerKVM VMs. We don't
    support it well because of some limitations in SLOF, but it's worth at
    least have feature parity in geom and mkimg.
---
 usr.bin/mkimg/gpt.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/usr.bin/mkimg/gpt.c b/usr.bin/mkimg/gpt.c
index b386ef6bc208..a071fbfac272 100644
--- a/usr.bin/mkimg/gpt.c
+++ b/usr.bin/mkimg/gpt.c
@@ -51,6 +51,7 @@ static mkimg_uuid_t gpt_uuid_freebsd_vinum = GPT_ENT_TYPE_FREEBSD_VINUM;
 static mkimg_uuid_t gpt_uuid_freebsd_zfs = GPT_ENT_TYPE_FREEBSD_ZFS;
 static mkimg_uuid_t gpt_uuid_mbr = GPT_ENT_TYPE_MBR;
 static mkimg_uuid_t gpt_uuid_ms_basic_data = GPT_ENT_TYPE_MS_BASIC_DATA;
+static mkimg_uuid_t gpt_uuid_prep_boot = GPT_ENT_TYPE_PREP_BOOT;
 
 static struct mkimg_alias gpt_aliases[] = {
     {	ALIAS_EFI, ALIAS_PTR2TYPE(&gpt_uuid_efi) },
@@ -63,6 +64,7 @@ static struct mkimg_alias gpt_aliases[] = {
     {	ALIAS_FREEBSD_ZFS, ALIAS_PTR2TYPE(&gpt_uuid_freebsd_zfs) },
     {	ALIAS_MBR, ALIAS_PTR2TYPE(&gpt_uuid_mbr) },
     {	ALIAS_NTFS, ALIAS_PTR2TYPE(&gpt_uuid_ms_basic_data) },
+    {	ALIAS_PPCBOOT, ALIAS_PTR2TYPE(&gpt_uuid_prep_boot) },
     {	ALIAS_NONE, 0 }		/* Keep last! */
 };
 


More information about the dev-commits-src-main mailing list