]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sysinstall: Disable timeout for connection with repart
authorJulian Sparber <julian@sparber.net>
Tue, 7 Jul 2026 16:12:44 +0000 (18:12 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 8 Jul 2026 06:27:13 +0000 (08:27 +0200)
The repart connection was timeing out when fetching candidate devices.
Therfore disable the timeout and keep the connection open till the user
disconnects.

src/sysinstall/sysinstall.c

index eca9681b378cf0fa102f58e5e10cb3229b0f3fb4..e1346a5e26ffe404926395f413b2d445cfc08644 100644 (file)
@@ -1875,6 +1875,12 @@ static int vl_method_list_candidate_devices(
         if (r < 0)
                 return r;
 
+        /* Disable connection timeout so that the connection to repart doesn't close before the link is
+         * disconnected */
+        r = sd_varlink_set_relative_timeout(context->repart_link, UINT64_MAX);
+        if (r < 0)
+                return r;
+
         /* The context is freed in vl_on_disconnect() */
         sd_varlink_set_userdata(context->repart_link, context);
         sd_varlink_set_userdata(link, TAKE_PTR(context));