From 0b4ff01baddba6be700df1ddda1342bfad9357d6 Mon Sep 17 00:00:00 2001 From: Ikey Doherty Date: Sun, 22 Dec 2024 13:48:41 +0000 Subject: [PATCH] blsctl: Fix loading of kernel snippets Signed-off-by: Ikey Doherty --- blsctl/src/main.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/blsctl/src/main.rs b/blsctl/src/main.rs index baeb0b5..fd76fc8 100644 --- a/blsctl/src/main.rs +++ b/blsctl/src/main.rs @@ -158,11 +158,14 @@ fn inspect_root(config: &Configuration) -> color_eyre::Result<()> { } } log::info!("Kernels: {kernels:?}"); - let entries = kernels.iter().map(Entry::new); + let mut entries = kernels.iter().map(Entry::new).collect::>(); + for entry in entries.iter_mut() { + entry.load_cmdline_snippets(config)?; + } // Query the manager let manager = Manager::new(config)? - .with_entries(entries) + .with_entries(entries.into_iter()) .with_bootloader_assets(booty_bits); let _parts = manager.mount_partitions()?; eprintln!("manager = {manager:?}");