Skip to content

Conversation

@jeckersb
Copy link
Collaborator

@jeckersb jeckersb commented Sep 3, 2025

For image building, we want to be able to run this on a non-bootc host
or in a container. There we'll manipulate the composefs repo in a
provided tempdir.

Signed-off-by: John Eckersberg [email protected]

For image building, we want to be able to run this on a non-bootc host
or in a container.  There we'll manipulate the composefs repo in a
provided tempdir.

Signed-off-by: John Eckersberg <[email protected]>
@bootc-bot bootc-bot bot requested a review from cgwalters September 3, 2025 18:59
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 cfsctl command handling to conditionally initialize the system storage. Previously, the storage was initialized unconditionally at the call site in cli.rs. Now, the initialization is deferred to cfsctl::run_from_iter and only occurs when a system repository is needed (i.e., when a specific repository path is not provided via command-line arguments). This change correctly aligns with the goal of allowing cfsctl to be used in environments without a bootc-managed sysroot, such as for image building. The changes are logical, improve code organization by making cfsctl more self-contained, and appear to be correctly implemented. I have no specific feedback or suggestions for improvement.

@cgwalters cgwalters merged commit 310f9f5 into bootc-dev:main Sep 3, 2025
29 checks passed
@jeckersb jeckersb mentioned this pull request Sep 3, 2025
@cgwalters cgwalters added the area/composefs Issues related to composefs label Sep 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/composefs Issues related to composefs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants