Skip to content
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

When tmpfs is created - it is expected that on boot user will not see "Cleaning /tmp directory" #735

Open
vitaly-zdanevich opened this issue Aug 28, 2024 · 3 comments

Comments

@vitaly-zdanevich
Copy link

vitaly-zdanevich commented Aug 28, 2024

Related file https://github.com/OpenRC/openrc/blob/master/init.d/bootmisc.in

Related documentation https://wiki.gentoo.org/wiki/Tmpfs

So, as I see it - OpenRC should check for an active tmpfs or have an option to set a flag to disable cleaning/wiping and logging it.

@thesamesam
Copy link
Contributor

thesamesam commented Aug 28, 2024

In #gentoo, Alfr made a good observation:

If you want to check mtab or fstab, then parsing one of those files will be way slower than empyting an already empty /tmp, as the latter only involves listing an empty directory.

@navi-desu
Copy link
Member

tbh the more i think about this, i feel like it's not worth it

parsing mount or one of the *tab files would be slower than running find or rm on an empty dir, and an rc_conf option would end up basically just being a "silence the Cleaning /tmp dir message"

i'll wait for more input ig but that's where i'm at

@vitaly-zdanevich
Copy link
Author

ok, maybe not automatic - but what about some config file - where user can disable /tmp wiping and that log line?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants