tmpfiles footgun, apply directly to the forehead
tmpfiles footgun, apply directly to the forehead
Posted Jun 16, 2024 21:26 UTC (Sun) by bluca (subscriber, #118303)In reply to: tmpfiles footgun, apply directly to the forehead by mb
Parent article: systemd 256 released
None of this has anything to do with "tmpfiles" - it is just an unfortunate legacy name (that cannot be changed without breaking scripts), but sd-tmpfiles has not been about temporary files for years and years. Just check the entries in the tmpfiles.d directory, you'll see plenty of stuff under /etc/ and /var/.
Its purpose today, and since quite some time, is providing declarative configuration for creating/removing/purging files and directories that are not shipped directly inside packages, which translates to pretty much anything outside of the vendor tree (/usr/).
The reason there's a config entry for the /home and /srv top level directories is to allow seamlessly making those into subvolumes for the BTRFS use case.
