dissect: Skip partitions with _empty label

This commit is contained in:
Daan De Meyer
2025-02-28 13:09:17 +01:00
committed by Lennart Poettering
parent 8a69330e54
commit 54ae0edc4a

View File

@@ -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));