dissect-image: don't probe swap partitions needlessly
We already know it's swap, we can assume it's also fstype swap, and don#t need to probe things later again.
This commit is contained in:
@@ -811,6 +811,8 @@ static int dissect_image(
|
||||
if (pflags & SD_GPT_FLAG_NO_AUTO)
|
||||
continue;
|
||||
|
||||
fstype = "swap";
|
||||
|
||||
/* We don't have a designator for SD_GPT_LINUX_GENERIC so check the UUID instead. */
|
||||
} else if (sd_id128_equal(type.uuid, SD_GPT_LINUX_GENERIC)) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user