From: krw Date: Sat, 8 May 2021 17:44:22 +0000 (+0000) Subject: Recognize GPT partitions of type 21686148-6449-6e6f-744e-656564454649 (a.k.a. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c01ef8ee1288289f22dec0fde8253743ef163643;p=openbsd Recognize GPT partitions of type 21686148-6449-6e6f-744e-656564454649 (a.k.a. "IdontNeedEFI", a.k.a. "BIOS boot"). Often used to contain the second stage boot loader binary on disk images. Makes it easier to recognize/overwrite/remove the contents. Example image provided by mlarkin@ --- diff --git a/sbin/fdisk/part.c b/sbin/fdisk/part.c index c119e21da86..5f3a1102516 100644 --- a/sbin/fdisk/part.c +++ b/sbin/fdisk/part.c @@ -1,4 +1,4 @@ -/* $OpenBSD: part.c,v 1.78 2021/05/07 22:15:13 krw Exp $ */ +/* $OpenBSD: part.c,v 1.79 2021/05/08 17:44:22 krw Exp $ */ /* * Copyright (c) 1997 Tobias Weingartner @@ -49,6 +49,7 @@ static const struct part_type { { 0x0A, "OS/2 Bootmgr"}, /* OS/2 Boot Manager or OPUS */ { 0x0B, "FAT32 ", "ebd0a0a2-b9e5-4433-87c0-68b6b72699c7" }, { 0x0C, "FAT32L ", "ebd0a0a2-b9e5-4433-87c0-68b6b72699c7" }, + { 0x0D, "BIOS Boot ", "21686148-6449-6e6f-744e-656564454649" }, { 0x0E, "FAT16L ", "ebd0a0a2-b9e5-4433-87c0-68b6b72699c7" }, { 0x0F, "Extended LBA"}, /* Extended DOS LBA-mapped */ { 0x10, "OPUS "}, /* OPUS */