Skip to content

Add /usr overlay info to bootc status#2022

Merged
cgwalters merged 3 commits intobootc-dev:mainfrom
evan-goode:evan-goode/bootc-status-usroverlay
Mar 3, 2026
Merged

Add /usr overlay info to bootc status#2022
cgwalters merged 3 commits intobootc-dev:mainfrom
evan-goode:evan-goode/bootc-status-usroverlay

Conversation

@evan-goode
Copy link
Contributor

This picks up from #1258 but only adds the usr_overlay field to the status, not the spec Presumably the spec and edit functionality could be added later. It supports querying the /usr overlay status on both composefs and ostree systems.

Adding this information to bootc status will be needed for rpm-software-management/dnf5#2358.

Resolves #474

For #1044

@bootc-bot bootc-bot bot requested a review from henrywang February 25, 2026 00:43
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 adds support for displaying /usr overlay information in bootc status. The changes are well-implemented, covering both composefs and ostree backends. The new usr_overlay field in the status provides valuable information about the system's state. The code is clean, and tests have been added to verify the new functionality.

I have one suggestion to improve the implementation in crates/lib/src/bootc_composefs/state.rs to avoid redundant syscalls.

cgwalters
cgwalters previously approved these changes Mar 3, 2026
Copy link
Collaborator

@cgwalters cgwalters left a comment

Choose a reason for hiding this comment

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

Nice!

@cgwalters
Copy link
Collaborator

Looks like this just needs a cargo fmt

Resolves bootc-dev#474

For bootc-dev#1044

Signed-off-by: Evan Goode <mail@evangoo.de>
Signed-off-by: Evan Goode <mail@evangoo.de>
Signed-off-by: Evan Goode <mail@evangoo.de>
@evan-goode evan-goode force-pushed the evan-goode/bootc-status-usroverlay branch from f7d35ff to 5914112 Compare March 3, 2026 14:10
@evan-goode
Copy link
Contributor Author

Thanks for the review! Fmtted.

@cgwalters cgwalters enabled auto-merge (rebase) March 3, 2026 14:24
@cgwalters cgwalters merged commit d6a2b7a into bootc-dev:main Mar 3, 2026
46 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.

bootc status does not report unlocked status

2 participants