Skip to content

Conversation

@Johan-Liebert1
Copy link
Collaborator

@Johan-Liebert1 Johan-Liebert1 commented Aug 28, 2025

Fill version field in generated BLS config

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 fixes an issue where the version field in generated BLS configuration files could be empty. It now correctly populates this field by reading the version from /usr/lib/os-release within the composefs image, with a fallback to a default value. The changes involve plumbing the FileSystem object to where it's needed and introducing a builder pattern for BLSConfig for cleaner construction. The changes look good and address the issue. I have one suggestion to improve consistency in comments and log messages.

Fill `version` field in generated BLS config

Signed-off-by: Johan-Liebert1 <[email protected]>
let (id, verity) = initialize_composefs_repository(state, rootfs).await?;

tracing::warn!(
tracing::info!(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Unrelated but shouldn't this actually be debug!?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think we had a discussion some time ago that we want this to show up, but I might be misremembering. Either (info/debug) is fine with me

@cgwalters cgwalters merged commit d7adf7d into bootc-dev:composefs-backend Aug 29, 2025
20 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.

2 participants