summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2021-06-12 14:28:31 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2021-06-12 14:28:31 +0000
commit2ca007665032febd03550f6aa80a66e6c42f1962 (patch)
tree1288e01764825b1f87aff8791a0c50d938c33cd9 /sbin
parent384ac6f81822e1cf5c78618fae44cc0bf0527f96 (diff)
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@
Diffstat (limited to 'sbin')
-rw-r--r--sbin/fdisk/gpt.c4
1 files changed, 1 insertions, 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 <mmu@grummel.net>
* Copyright (c) 2015 Kenneth R Westerback <krw@openbsd.org>
@@ -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);