From f56531c25ccd0e8cf8658e49d79b6a8cae3ccba9 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 5 Nov 2025 22:28:08 +0100 Subject: [PATCH] pull: there's no need to keep the downloaded image in memory, except for the sha256sums/gpg file This seems to be a mistake, in place since the first commit: we only want the downloaded data in memory if this is a sha256sums or gpg file, which we need to prorcess ourselves. --- src/import/pull-raw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/import/pull-raw.c b/src/import/pull-raw.c index ef10745ba85..80ef38f50a6 100644 --- a/src/import/pull-raw.c +++ b/src/import/pull-raw.c @@ -872,8 +872,8 @@ int raw_pull_start( return r; i->raw_job->calc_checksum = r; - i->raw_job->force_memory = true; /* make sure this is both written to disk if that's - * requested and into memory, since we need to verify it */ + i->raw_job->force_memory = !r; /* make sure this is both written to disk if that's + * requested and into memory, since we need to verify it */ } if (size_max != UINT64_MAX) -- 2.47.3