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()]
System and Service Manager
Details
Most documentation is available on systemd's web site.
Assorted, older, general information about systemd can be found in the systemd Wiki.
Information about build requirements is provided in the README file.
Consult our NEWS file for information about what's new in the most recent systemd versions.
Please see the Code Map for information about this repository's layout and content.
Please see the Hacking guide for information on how to hack on systemd and test your modifications.
Please see our Contribution Guidelines for more information about filing GitHub Issues and posting GitHub Pull Requests.
When preparing patches for systemd, please follow our Coding Style Guidelines.
If you are looking for support, please contact our mailing list, join our IRC channel #systemd on libera.chat or Matrix channel
Stable branches with backported patches are available in the stable repo.
We have a security bug bounty program sponsored by the Sovereign Tech Fund hosted on YesWeHack
Repositories with distribution packages built from git main are available on OBS, and also repositories with packages built from the latest stable release
