]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
import-generator: disable timeout for downloaded images
authorLennart Poettering <lennart@poettering.net>
Tue, 26 Aug 2025 06:59:49 +0000 (08:59 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 26 Aug 2025 13:23:41 +0000 (15:23 +0200)
Downloading images can take arbitrary amounts of time, hence disable the
timeout for it.

Inspired by https://github.com/systemd/particleos/issues/80

src/import/import-generator.c

index bf0eaa5c0ea51cbba5e66c56144cf809d0a28c02..bf5f41a7472565af8ca58e088f77aeb065ef61bb 100644 (file)
@@ -388,7 +388,7 @@ static int transfer_generate(const Transfer *t) {
         if (!escaped)
                 return log_oom();
 
-        fprintf(f, "ExecStart=:varlinkctl call -q --more /run/systemd/io.systemd.Import io.systemd.Import.Pull '%s'\n",
+        fprintf(f, "ExecStart=:varlinkctl call -q --more --timeout=infinity /run/systemd/io.systemd.Import io.systemd.Import.Pull '%s'\n",
                 escaped);
 
         r = fflush_and_check(f);