diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2022-02-03 13:24:05 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2022-02-03 13:24:05 +0000 |
commit | 5a2784fe64d68f6ae98d852fe169a999bfd8ea03 (patch) | |
tree | d1906baaffb1f864fdcefc5e99e6a600c0466b32 /sbin/fdisk/part.c | |
parent | 73df14f0ecc0118843660fdd2cf03f5ba28251aa (diff) |
fdisk(8): Make -A preserve BIOS boot partition
On PolarFire SoC, the HSS firmware loads HSS payload from BIOS boot
partition. Typically the payload carries second-stage low-level boot
code, such as U-Boot. If the payload is missing, the SoC is not able
to boot normally. Hence automatic disk formatting should not delete
the partition.
OK krw@
Diffstat (limited to 'sbin/fdisk/part.c')
-rw-r--r-- | sbin/fdisk/part.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/fdisk/part.c b/sbin/fdisk/part.c index b02b6a62ed6..b95a6e76a80 100644 --- a/sbin/fdisk/part.c +++ b/sbin/fdisk/part.c @@ -1,4 +1,4 @@ -/* $OpenBSD: part.c,v 1.113 2022/01/27 16:26:32 krw Exp $ */ +/* $OpenBSD: part.c,v 1.114 2022/02/03 13:24:04 visa Exp $ */ /* * Copyright (c) 1997 Tobias Weingartner @@ -152,7 +152,7 @@ const struct gpt_type gpt_types[] = { { 0x07, 0, "NTFS ", "ebd0a0a2-b9e5-4433-87c0-68b6b72699c7" }, { 0x0B, 0, "FAT32 ", "ebd0a0a2-b9e5-4433-87c0-68b6b72699c7" }, { 0x0C, 0, "FAT32L ", "ebd0a0a2-b9e5-4433-87c0-68b6b72699c7" }, - { 0x0D, 0, "BIOS Boot ", "21686148-6449-6e6f-744e-656564454649" }, + { 0x0D, 1, "BIOS Boot ", "21686148-6449-6e6f-744e-656564454649" }, { 0x0E, 0, "FAT16L ", "ebd0a0a2-b9e5-4433-87c0-68b6b72699c7" }, { 0x11, 0, "OS/2 hidden ", "ebd0a0a2-b9e5-4433-87c0-68b6b72699c7" }, { 0x14, 0, "OS/2 hidden ", "ebd0a0a2-b9e5-4433-87c0-68b6b72699c7" }, |