-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate boot.cleanTmpDir? #96753
Comments
Does systemd enable this clearing by default? Given that cleanTmpDir currently defaults to false and that this setting destroys data, there should be a release note. There should then be a flag to disable it, and in the release notes give an example of how to disable it. |
Yes, systemd ships with Disabling /tmp cleaning ( |
I marked this as stale due to inactivity. → More info |
@primeos if the file is gone, then "config.boot.cleanTmpDir" is indeed irrelevant. |
@cx405 |
I did a preliminary test of this by setting the following in my configuration:
I confirmed that it changed the .conf file, rebooted the system, and then checked if it had cleaned the tmp dir. Not only that, but I also tried setting the first parameter to q. In both cases it didn't look like the .conf file was respected. Then, when I enabled |
I can confirm that |
Reason: We now install
tmpfiles.d/tmp.conf
fromsystemd
with the following content:Which is pretty similar to our implementation:
From
man tmpfiles.d
:So this shouldn't cause any errors in the log but the effect of
boot.cleanTmpDir = true;
is only that we also delete files that are newer than 10 days on each boot. Therefore I am not sure if we still need the option. It might be useful for some special cases though.But in any case we should IMO mention in the description of
boot.cleanTmpDir = true;
that the files will now be deleted after 10 days anyway. Current description:The text was updated successfully, but these errors were encountered: