import-generator: disable timeout for downloaded images

Downloading images can take arbitrary amounts of time, hence disable the
timeout for it.

Inspired by https://github.com/systemd/particleos/issues/80
This commit is contained in:
Lennart Poettering
2025-08-26 08:59:49 +02:00
committed by Zbigniew Jędrzejewski-Szmek
parent 2f615ec1d1
commit 06de39b3bd

View 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);