From: Daan De Meyer Date: Fri, 28 Feb 2025 12:09:17 +0000 (+0100) Subject: dissect: Skip partitions with _empty label X-Git-Tag: v258-rc1~1217 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54ae0edc4aabb6017f6169b1eac5faf0a407d67b;p=thirdparty%2Fsystemd.git dissect: Skip partitions with _empty label --- diff --git a/src/shared/dissect-image.c b/src/shared/dissect-image.c index 724aedc532e..b6563f9ab32 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));