Skip to content

Commit 39d4a8a

Browse files
committed
boot: Add some error context
Signed-off-by: Colin Walters <[email protected]>
1 parent 9a02517 commit 39d4a8a

File tree

1 file changed

+3
-1
lines changed
  • crates/lib/src/bootc_composefs

1 file changed

+3
-1
lines changed

crates/lib/src/bootc_composefs/boot.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,7 @@ pub(crate) fn setup_composefs_bls_boot(
550550
}
551551

552552
/// Writes a PortableExecutable to ESP along with any PE specific or Global addons
553+
#[context("Writing {file_path} to ESP")]
553554
fn write_pe_to_esp(
554555
repo: &ComposefsRepository<Sha256HashValue>,
555556
file: &RegularFile<Sha256HashValue>,
@@ -569,7 +570,8 @@ fn write_pe_to_esp(
569570
if matches!(pe_type, PEType::Uki) {
570571
let cmdline = uki::get_cmdline(&efi_bin).context("Getting UKI cmdline")?;
571572

572-
let (composefs_cmdline, insecure) = get_cmdline_composefs::<Sha256HashValue>(cmdline)?;
573+
let (composefs_cmdline, insecure) =
574+
get_cmdline_composefs::<Sha256HashValue>(cmdline).context("Parsing composefs=")?;
573575

574576
// If the UKI cmdline does not match what the user has passed as cmdline option
575577
// NOTE: This will only be checked for new installs and now upgrades/switches

0 commit comments

Comments
 (0)