Skip to content

Bump Composefs-rs, use buffered UKI readers#2215

Open
Johan-Liebert1 wants to merge 3 commits into
bootc-dev:mainfrom
Johan-Liebert1:bump-cfs
Open

Bump Composefs-rs, use buffered UKI readers#2215
Johan-Liebert1 wants to merge 3 commits into
bootc-dev:mainfrom
Johan-Liebert1:bump-cfs

Conversation

@Johan-Liebert1
Copy link
Copy Markdown
Collaborator

See individual commits

Signed-off-by: Pragyan Poudyal <pragyanpoudyal41999@gmail.com>
@Johan-Liebert1 Johan-Liebert1 requested a review from cgwalters May 27, 2026 04:58
@bootc-bot bootc-bot Bot requested a review from jeckersb May 27, 2026 04:58
Copy link
Copy Markdown
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 UKI (Unified Kernel Image) handling to use buffered, stream-based reading (Read + Seek) instead of loading entire binary files into memory. This change updates several utility functions to use _buffered variants and stream data directly. Additionally, dependencies in Cargo.toml and Cargo.lock are updated. A critical compilation issue was identified in boot.rs where the local parameter name uki shadows the imported uki module, preventing the compiler from resolving module-level functions like uki::get_section_buffered.

Comment thread crates/lib/src/bootc_composefs/boot.rs Outdated
Use buffered readers for reading UKI sections instead of loading the
entire thing in memory

Signed-off-by: Pragyan Poudyal <pragyanpoudyal41999@gmail.com>
cgwalters
cgwalters previously approved these changes May 27, 2026
@cgwalters cgwalters added this pull request to the merge queue May 27, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks May 27, 2026
Buffered UKI readers fail if the binary being read is not a valid PE
binary. To fix tests, create a minimal PE binary

Assisted-By: Claude Code (Opus)
Signed-off-by: Pragyan Poudyal <pragyanpoudyal41999@gmail.com>
@Johan-Liebert1 Johan-Liebert1 added the ci/tier-1 Run CI for tier-1 OS (centos-10) only label May 28, 2026
@Johan-Liebert1 Johan-Liebert1 requested a review from cgwalters May 28, 2026 06:42
@cgwalters cgwalters added this pull request to the merge queue May 28, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/tier-1 Run CI for tier-1 OS (centos-10) only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants