summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2022-11-29 18:24:32 +0100
committerLennart Poettering <lennart@poettering.net>2022-11-29 18:34:29 +0100
commitdf4524cb3796529b435af309f5e6a2d92bcdaaa0 (patch)
treeeaed41fb85211dda640e1ce870ca704a0d0b917d /src
parentcb8d22fa8490ea19e82117b1e1ea794e3c0a4c98 (diff)
downloadsystemd-df4524cb3796529b435af309f5e6a2d92bcdaaa0.tar.gz
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.
Diffstat (limited to 'src')
-rw-r--r--src/shared/dissect-image.c2
1 files changed, 2 insertions, 0 deletions
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)) {