Skip to content

boot: Include .dtb section (if it exists) in the boot digest - #2492

Merged
cgwalters merged 1 commit into
bootc-dev:mainfrom
alexlarsson:uki-checksum-dtb
Sep 24, 2026
Merged

cgwalters merged 1 commit into
bootc-dev:mainfrom
alexlarsson:uki-checksum-dtb

Conversation

@alexlarsson

Copy link
Copy Markdown
Contributor

This really is part of what an individual uki "boots".

This really is part of what an individual uki "boots".

Signed-off-by: Alexander Larsson <[email protected]>
@alexlarsson
alexlarsson marked this pull request as ready for review September 24, 2026 13:18
@bootc-bot
bootc-bot Bot requested a review from cgwalters September 24, 2026 13:18
uki_reader.seek(SeekFrom::Start(0))?;
match uki::get_section_buffered(uki_reader, ".dtb") {
Ok(data) => hasher.update(&data).context("hashing dtb")?,
Err(uki::UkiError::MissingSection(_)) => {}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Btw we should add get_section_optional

@cgwalters
cgwalters enabled auto-merge (rebase) September 24, 2026 13:22
@cgwalters
cgwalters merged commit c76e4e7 into bootc-dev:main Sep 24, 2026
55 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