Skip to content

UKI print dump diff#2315

Open
Johan-Liebert1 wants to merge 2 commits into
bootc-dev:mainfrom
Johan-Liebert1:uki-print-dump-diff
Open

UKI print dump diff#2315
Johan-Liebert1 wants to merge 2 commits into
bootc-dev:mainfrom
Johan-Liebert1:uki-print-dump-diff

Conversation

@Johan-Liebert1

Copy link
Copy Markdown
Collaborator

cfs/uki: Print dumpfile diff on UKI digest mismatch

If we have a UKI digest mismatch error, we now print the dumpfile diff,
if a dumpfile is present at /boot/$kver.dump

Closes: #2313

If we have a UKI digest mismatch error, we now print the dumpfile diff,
if a dumpfile is present at `/boot/$kver.dump`

Closes: bootc-dev#2313

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 Jul 15, 2026
@bootc-bot bootc-bot Bot requested a review from gursewak1997 July 15, 2026 11:17
Signed-off-by: Pragyan Poudyal <pragyanpoudyal41999@gmail.com>
.and_then(|x| x.strip_suffix(EFI_EXT).map(|x| format!("{x}.dump")));

let Some(dumpfile_name) = &dumpfile_name else {
tracing::warn!("Dumpfile not found for diff");

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This is a normal situation, not a warning case.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Right. I'll change it to info

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

or debug maybe

let mut tmpfile = tempdir.create("current")?;
dumpfile::write_dumpfile(&mut tmpfile, &fs).context("Writing dumpfile")?;

let mut cmd = std::process::Command::new("diff");

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This doesn't seem to accept files as params, only strings, ranges etc. Reading the entire diff into memory is okay-ish I guess as it's usually around < 20M

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.

ukify: Generate dumpfile by default

2 participants