Skip to content

Conversation

@gursewak1997
Copy link
Contributor

The bootc container lint command now reads tmpfiles.d configuration files from both /usr/lib/tmpfiles.d and /etc/tmpfiles.d, with /etc entries taking precedence (matching systemd's behavior).

Fixes #1732

@bootc-bot bootc-bot bot requested a review from jmarrero November 13, 2025 22:53
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the tmpfiles.d parsing logic to support reading configurations from both /usr/lib/tmpfiles.d and /etc/tmpfiles.d, with the latter taking precedence. The changes are well-structured, introducing a helper function read_tmpfiles_from_dir to improve modularity. The core logic for handling precedence is correct. My review includes suggestions to enhance the test suite to more thoroughly cover the new functionality, including testing the precedence logic and ensuring the integration test fully validates the behavior of excluding paths defined in /etc/tmpfiles.d.

@gursewak1997 gursewak1997 force-pushed the fix-tmpfiles-etc-check branch 5 times, most recently from 111c3b3 to eb7fb83 Compare November 13, 2025 23:04
The bootc container lint command now reads tmpfiles.d configuration files
from both /usr/lib/tmpfiles.d and /etc/tmpfiles.d, with /etc entries
taking precedence (matching systemd's behavior).

Fixes bootc-dev#1732

Signed-off-by: gursewak1997 <[email protected]>
@gursewak1997 gursewak1997 force-pushed the fix-tmpfiles-etc-check branch from eb7fb83 to b62a14e Compare November 14, 2025 01:04
@cgwalters cgwalters merged commit 0e27000 into bootc-dev:main Nov 14, 2025
37 checks passed
@gursewak1997 gursewak1997 deleted the fix-tmpfiles-etc-check branch November 14, 2025 16:59
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.

var-tmpfiles check in bootc container lint doesn't check /etc/tmpfiles.d

2 participants