Files
systemd/src
Zbigniew Jędrzejewski-Szmek fa33eef344 core: upgrade /tmp when PrivateTmp=yes/DefaultDeps=no to disconnected
In https://github.com/systemd/systemd/issues/28515, multiple people report that
services that have PrivateTmp=yes and DefaultDependencies=no fail to create the
temporary directories under /tmp, when /tmp is e.g. a bind mount or some other
kind of mount that takes more time.

Before PrivateTmp=disconnected was added, we didn't have a nice solution:
DefaultDependencies=no is used to start services very early, so we wouldn't
want to add a dependency on /tmp automatically. With PrivateTmp=disconnected we
have a fairly nice solution. Let's "upgrade" to this mode automatically.
Strictly speaking, it is a small compat break, but in practice it's unlikely to
matter for early-boot services whether their /tmp is private or disconnected.

The dependency on /tmp that is checked is After. I think this is enough,
since any tmp.mount would be pulled in by local-fs.target and the rest of
the transaction anyway, so we don't need to check more than After.

The asserts are relaxed, because now the two settings can now diverge
in either way.

Resolves https://github.com/systemd/systemd/issues/28515.

[yhndnzj: fix unit_add_exec_dependencies() to handle the new
          combination; add a comment in exec_needs_sys_admin()]
2026-02-25 12:38:11 +01:00
..
2026-02-11 11:46:12 +01:00
2026-02-11 11:47:59 +01:00
2025-12-15 08:50:13 +09:00
2025-12-15 08:50:13 +09:00
…
2025-12-18 13:57:32 +01:00
2026-02-11 11:46:44 +01:00
2026-02-20 16:56:16 +01:00
2026-02-11 11:47:18 +01:00
2026-02-19 15:08:20 +01:00
2026-01-06 08:45:22 +09:00
…
2026-02-05 14:14:40 +01:00
2026-02-23 05:52:49 +09:00
2025-12-01 16:18:11 +01:00