Skip to content

Conversation

@mvo5
Copy link
Contributor

@mvo5 mvo5 commented Dec 17, 2025

Our osbuild/image-builder cache is located in /var/cache/image-builder and it can grow quite big. To avoid it growing out of bounds too much add a tmpfile.d snippet to ensure that we clean content older than 14d. The 14d is a bit arbitrary, happy to change to longer or shorter cache timeouts (side-note: we have a cache limit in osbuild and an LRU there too but sources are currently not part of the cache limits in osbuild).

@mvo5 mvo5 force-pushed the tmpfiles-d-cache-cleanup branch 3 times, most recently from f57b06a to 8ac69dd Compare December 17, 2025 14:51
@mvo5 mvo5 marked this pull request as ready for review December 17, 2025 15:04
@mvo5 mvo5 requested a review from a team as a code owner December 17, 2025 15:04
@mvo5 mvo5 requested review from bcl, croissanne and supakeen and removed request for a team December 17, 2025 15:04
Copy link
Member

@supakeen supakeen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'd need to build require systemd-rpm-macros, use a source macro for the drop in, and I think we also need to own /var/cache/image-builder if I read https://docs.fedoraproject.org/en-US/packaging-guidelines/Tmpfiles.d/#_example_spec_file correctly?

Our osbuild/image-builder cache is located in /var/cache/image-builder
and it can grow quite big. To avoid it growing out of bounds too much
add a tmpfile.d snippet to ensure that we clean content older than
14d. The 14d is a bit arbitrary, happy to change to longer or shorter
cache timeouts (side-note: we have a cache limit in osbuild and an LRU
there too but sources are currently not part of the cache limits in
osbuild).
@mvo5 mvo5 force-pushed the tmpfiles-d-cache-cleanup branch from 8ac69dd to 3954d50 Compare December 17, 2025 15:36
@mvo5
Copy link
Contributor Author

mvo5 commented Dec 17, 2025

systemd-rpm-macros

Thank you! My rpm-foo is weak :) I updated the spec file, hope I got it right with the %ghost dir as both ibcli and tmpfiles.d will create the dir as needed but if I should create it in the rpm that is fine, happy to do that too.

Copy link
Member

@supakeen supakeen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is fine now! Thank you.

@lzap
Copy link
Contributor

lzap commented Dec 18, 2025

One RPM build failed, but I am unable to download logs I see a timeout error:

https://dashboard.packit.dev/jobs/copr/3101972

@supakeen supakeen added this pull request to the merge queue Dec 18, 2025
Merged via the queue into osbuild:main with commit d7e22f2 Dec 18, 2025
34 of 35 checks passed
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

Successfully merging this pull request may close these issues.

3 participants