From: ppkramer-hub Date: Mon, 9 Mar 2026 19:31:53 +0000 (+0100) Subject: mount: honor --timeout-idle-sec=SEC option (#41010) X-Git-Tag: v260-rc3~47 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e1877e6b064c5c8b158fee86e4df7be21ae1ee8a;p=thirdparty%2Fsystemd.git mount: honor --timeout-idle-sec=SEC option (#41010) When using systemd-mount to create a transient .mount/.automount file for removable storage, the option to specify the idle timeout on the commandline using **--timeout-idle-sec=SEC** is not reflected in the generated .automount file. Instead, the idle timeout is always set to 1 second. arg_timeout_idle_set was never set to true when passing the argument, so arg_timeout_idle was always set to 1s. Fixes #41007. Co-authored-by: patrick --- diff --git a/src/mount/mount-tool.c b/src/mount/mount-tool.c index d2af4688abb..768ff349e27 100644 --- a/src/mount/mount-tool.c +++ b/src/mount/mount-tool.c @@ -348,6 +348,7 @@ static int parse_argv(int argc, char *argv[]) { if (r < 0) return log_error_errno(r, "Failed to parse timeout: %s", optarg); + arg_timeout_idle_set = true; break; case ARG_AUTOMOUNT_PROPERTY: