]> git.ipfire.org Git - thirdparty/systemd.git/commit
mount: honor --timeout-idle-sec=SEC option (#41010)
authorppkramer-hub <ppkramer@gmail.com>
Mon, 9 Mar 2026 19:31:53 +0000 (20:31 +0100)
committerGitHub <noreply@github.com>
Mon, 9 Mar 2026 19:31:53 +0000 (04:31 +0900)
commite1877e6b064c5c8b158fee86e4df7be21ae1ee8a
tree7a79b6b66322f88cfd6dc07157e32d4e82a8151b
parentb5b21d53c08bce4854f07cc5a5ced51a19495f0a
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 <patrick@localhost>
src/mount/mount-tool.c