From 65c111ddb1e59b404655df40204a7ae981432ddb Mon Sep 17 00:00:00 2001 From: krw Date: Mon, 6 Mar 2023 17:42:39 +0000 Subject: [PATCH] Use GPT_UUID_NBSD_UFS, not GPT_UUID_FBSD_DATA, for NetBSD GPT partition entries. Add GPT_UUID_LEGACY_MBR entry to list of known partition id's as it is defined in the UEFI Standard. --- sbin/fdisk/part.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sbin/fdisk/part.c b/sbin/fdisk/part.c index d666e3681ad..99d19211825 100644 --- a/sbin/fdisk/part.c +++ b/sbin/fdisk/part.c @@ -1,4 +1,4 @@ -/* $OpenBSD: part.c,v 1.131 2022/08/29 07:19:14 krw Exp $ */ +/* $OpenBSD: part.c,v 1.132 2023/03/06 17:42:39 krw Exp $ */ /* * Copyright (c) 1997 Tobias Weingartner @@ -191,7 +191,7 @@ const struct gpt_type gpt_types[] = { { 0xA8, 0, "MacOS X", "55465300-0000-11aa-aa11-00306543ecac" }, { 0xA9, 0, "NetBSD", - "516e7cb4-6ecf-11d6-8ff8-00022d09712b" }, + "49f48d5a-b10e-11dc-b99b-0019d1879648" }, { 0xAB, 0, "MacOS X boot", "426f6f74-0000-11aa-aa11-00306543ecac" }, { 0xAF, 0, "MacOS X HFS+", @@ -210,6 +210,8 @@ const struct gpt_type gpt_types[] = { "6a85cf4d-1dd2-11b2-99a6-080020736631" }, { 0xEB, 0, "BeOS/i386", "42465331-3ba3-10f1-802a-4861696b7521" }, + { 0xEC, 0, "Legacy MBR", + "024dee41-33e7-11d3-9d69-0008c781f39f" }, { 0xEF, 0, "EFI Sys", "c12a7328-f81f-11d2-ba4b-00a0c93ec93b" }, }; -- 2.20.1