summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sbin/gpt/remove.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/gpt/remove.c b/sbin/gpt/remove.c
index 5a6f83f..98b1d4d 100644
--- a/sbin/gpt/remove.c
+++ b/sbin/gpt/remove.c
@@ -107,6 +107,8 @@ rem(int fd)
if (!uuid_is_nil(&type, NULL) &&
!uuid_equal(&type, &uuid, NULL))
continue;
+
+ /* Remove the entry by clearing the partition type. */
uuid_create_nil(&ent->ent_type, NULL);
hdr->hdr_crc_table = htole32(crc32(tbl->map_data,
OpenPOWER on IntegriCloud