From e67a6d7cdfe67b7c862074600c0053c7c052bd2f Mon Sep 17 00:00:00 2001 From: krw Date: Sat, 12 Jun 2021 14:28:30 +0000 Subject: [PATCH] When initializing a GPT always create an EFI SYS partition if the '-b' option is specified. GPT is no longer a __i386__/__amd64__ thing. ok kettenis@ --- sbin/fdisk/gpt.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sbin/fdisk/gpt.c b/sbin/fdisk/gpt.c index 434071bc4c2..8154ec37a6d 100644 --- a/sbin/fdisk/gpt.c +++ b/sbin/fdisk/gpt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gpt.c,v 1.22 2021/06/12 14:10:01 krw Exp $ */ +/* $OpenBSD: gpt.c,v 1.23 2021/06/12 14:28:30 krw Exp $ */ /* * Copyright (c) 2015 Markus Muller * Copyright (c) 2015 Kenneth R Westerback @@ -402,12 +402,10 @@ GPT_init(void) uuid_enc_le(&gh.gh_guid, &guid); rslt = 0; -#if defined(__i386__) || defined(__amd64__) if (b_arg > 0) { rslt = add_partition(gpt_uuid_efi_system, "EFI System Area", b_arg); } -#endif if (rslt == 0) rslt = add_partition(gpt_uuid_openbsd, "OpenBSD Area", 0); -- 2.20.1