composefs/install/bls: Fix empty version in config#1558
composefs/install/bls: Fix empty version in config#1558cgwalters merged 1 commit intobootc-dev:composefs-backendfrom
Conversation
de82ca6 to
f96ae7e
Compare
There was a problem hiding this comment.
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.
f96ae7e to
f0a336f
Compare
54e254c to
f10ec34
Compare
f0a336f to
43d3b7b
Compare
f10ec34 to
67c4e8d
Compare
43d3b7b to
606c66d
Compare
67c4e8d to
b45ef30
Compare
Fill `version` field in generated BLS config Signed-off-by: Johan-Liebert1 <pragyanpoudyal41999@gmail.com>
606c66d to
a8313cb
Compare
| let (id, verity) = initialize_composefs_repository(state, rootfs).await?; | ||
|
|
||
| tracing::warn!( | ||
| tracing::info!( |
There was a problem hiding this comment.
Unrelated but shouldn't this actually be debug!?
There was a problem hiding this comment.
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
Fill
versionfield in generated BLS config