Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Drop logrotate
This drops the
app-admin/logrotate
package as requested in flatcar/Flatcar#556The aforementioned issue mentions the caveat of
/var/log/{btmp,wtmp}
growing indefinitely due to the absence of logrotate. In addition to that, a brief glance (akagrep -r
) at the overlay reveals packages that log to paths other than these. For instance,sssd
seems to log to various files in/var/log/sssd/*.log
. There may be many such packages logging to such directories, which can be pinpointed by looking forlogrotate
config files in the installed manifest of each package.Any hints for solving this issue sanely? Taking the
sssd
example, it would require patching upstream code, not to mention it would break references to such files in the documentation. But this is unsustainable as patching N packages entails much more overhead than just maintaininglogrotate
, unless I am missing something.TODO
Drop logrotate
Add a systemd timer for truncation of now unmanaged files (blocked on requested feedback)
How to use
TODO
Testing done
TODO, Will be performed after pending feedback is received
changelog/
directory (user-facing change, bug fix, security fix, update)/boot
and/usr
size, packages, list files for any missing binaries, kernel modules, config files, kernel modules, etc.