type = gpt_partition_type_from_uuid(type_id);
label = blkid_partition_get_name(pp); /* libblkid returns NULL here if empty */
+
+ /* systemd-sysupdate expects empty partitions to be marked with an "_empty" label, hence ignore them here. */
if (streq_ptr(label, "_empty"))
continue;
if (flags & SD_GPT_FLAG_NO_AUTO)
continue;
+ /* systemd-sysupdate expects empty partitions to be marked with an "_empty" label, hence ignore them here. */
+ if (streq_ptr(label, "_empty"))
+ continue;
+
/* We found a suitable root partition, let's remember the first one, or the one with
* the newest version, as determined by comparing the partition labels. */