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
journal: Set +C if we create /var/log/journal #32574
base: main
Are you sure you want to change the base?
Conversation
systemd-journal-flush.service runs before systemd-tmpfiles-setup.service so we can't rely on tmpfiles setting +C for us, so let's make journald set it itself if it creates /var/log/journal itself.
Important An -rc1 tag has been created and a release is being prepared, so please note that PRs introducing new features and APIs will be held back until the new version has been released. |
hmm, this is quite problematic, since people might want to turn this off, which is via tmpfiles, but hard if encoded in C. the fix seems rather to run the flush code after tmpfiles? |
@poettering You seem to have different thoughts according to 74055aa
|
hmm, i think we have a problem and can't really apply it before and after, can we? hmpf. fucking btrfs. it could be so easy if nocow was something one could turn off/on later. btw, i think there's an issue somewhere about this already, we should probably link this up here. I guess we should just bite the bullet and either add a journald.conf knob for this, or an env var that journald reads, to give people control, and then simply hack this up in C code, and drop the nocow flag handling in tmpfiles. |
systemd-journal-flush.service runs before systemd-tmpfiles-setup.service so we can't rely on tmpfiles setting +C for us, so let's make journald set it itself if it creates /var/log/journal itself.