From 54ae0edc4aabb6017f6169b1eac5faf0a407d67b Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Fri, 28 Feb 2025 13:09:17 +0100 Subject: [PATCH] dissect: Skip partitions with _empty label --- src/shared/dissect-image.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/shared/dissect-image.c b/src/shared/dissect-image.c index 724aedc532..b6563f9ab3 100644 --- a/src/shared/dissect-image.c +++ b/src/shared/dissect-image.c @@ -1002,6 +1002,8 @@ static int dissect_image( type = gpt_partition_type_from_uuid(type_id); label = blkid_partition_get_name(pp); /* libblkid returns NULL here if empty */ + if (streq_ptr(label, "_empty")) + continue; log_debug("Dissecting %s partition with label %s and UUID %s", strna(partition_designator_to_string(type.designator)), strna(label), SD_ID128_TO_UUID_STRING(id));