diff options
author | Lennart Poettering <lennart@poettering.net> | 2022-11-29 18:24:32 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2022-11-29 18:34:29 +0100 |
commit | df4524cb3796529b435af309f5e6a2d92bcdaaa0 (patch) | |
tree | eaed41fb85211dda640e1ce870ca704a0d0b917d /src | |
parent | cb8d22fa8490ea19e82117b1e1ea794e3c0a4c98 (diff) | |
download | systemd-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.c | 2 |
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)) { |