From df4524cb3796529b435af309f5e6a2d92bcdaaa0 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 29 Nov 2022 18:24:32 +0100 Subject: 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. --- src/shared/dissect-image.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/shared/dissect-image.c') diff --git a/src/shared/dissect-image.c b/src/shared/dissect-image.c index d7a047e68b..1d634c9b88 100644 --- a/src/shared/dissect-image.c +++ b/src/shared/dissect-image.c @@ -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)) { -- cgit v1.2.1