Repository navigation
ostree-ext: Point ostree container commit users at bootc container lint - #2504
Merged
cgwalters merged 1 commit intoSep 28, 2026
Merged
Conversation
Contributor
Author
|
Rebased onto main; 1 commit, no content change. Generated-by: https://github.com/cgwalters/#llms |
cgwalters-bot
force-pushed
the
bot/ostree-container-commit-noop
branch
from
September 26, 2026 21:11
42dfeb6 to
e30d05e
Compare
cgwalters
requested changes
Sep 28, 2026
… lint` People keep carrying `RUN ... && ostree container commit` in their Containerfiles because older docs told them to, while `bootc container lint` is now the supported way to check a bootc image. We can't just drop or neuter the command: existing builds rely on it emptying /run, /tmp, /var/tmp and /var/cache, and changing that would silently grow images or leak build-time files into layers. So keep its behavior, but print a one-line notice on stderr that it is deprecated in favor of `bootc container lint`, and pause for 5 seconds so the notice stands out in build logs rather than scrolling by. Related: bootc-dev#2396 Generated-by: AI Signed-off-by: Colin Walters <[email protected]>
cgwalters-bot
force-pushed
the
bot/ostree-container-commit-noop
branch
from
September 28, 2026 14:59
e30d05e to
24529c1
Compare
cgwalters
enabled auto-merge (rebase)
September 28, 2026 20:27
cgwalters
approved these changes
Sep 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
People keep putting
RUN ... && ostree container commitin their Containerfiles because older docs told them to, whilebootc container lintis now the supported way to check a bootc image. Making the command a no-op would silently change what ends up in existing images (it empties /run, /tmp, /var/tmp and /var/cache), so this keeps its behavior as is. It now prints a prominent deprecation note on stderr pointing atbootc container lint, then pauses 5 seconds so the note stands out in build logs.Related: #2396
Testing
On a 16-core RHEL 10 devspace, branch head 7cb98ec (on main 41049cc):
just validatepassed.just unit-testspassed: 444 tests, including the newcommit::tests::container_commit_notice, which checks the note's text (the sleep lives outside the tested function, so the suite doesn't wait).just buildbuilt the image (bootc-202609252226.g7cb98ecb5d). I copied its/usr/bin/bootcontoquay.io/centos-bootc/centos-bootc:stream10and ranostree container commitin aRUNstep that first writes files to /var/cache, /var/tmp and /tmp. The note was printed, the command took 5s, and the files were removed as before. The same step on the stock image took 0s, printed nothing and removed the files too.The
Signed-off-by: Colin Walters <[email protected]>on these commits was added on cgwalters's approval of the review draft: cgwalters-forge#8 (review)Generated-by: https://github.com/cgwalters/#llms