Skip to content

Commit 7d596fe

Browse files
committed
Fix compat with newer kernel crate
Signed-off-by: Colin Walters <[email protected]>
1 parent d8f04c5 commit 7d596fe

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

crates/lib/src/install.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1559,8 +1559,7 @@ async fn initialize_composefs_repository(
15591559
fn get_booted_bls() -> Result<BLSConfig> {
15601560
let cmdline = crate::kernel::Cmdline::from_proc()?;
15611561
let booted = cmdline
1562-
.iter()
1563-
.find(|x| x.key == b"composefs")
1562+
.find("composefs")
15641563
.ok_or_else(|| anyhow::anyhow!("Failed to find composefs parameter in kernel cmdline"))?;
15651564

15661565
for entry in std::fs::read_dir("/sysroot/boot/loader/entries")? {

crates/lib/src/status.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,8 +393,7 @@ async fn boot_entry_from_composefs_deployment(
393393
pub(crate) async fn composefs_deployment_status() -> Result<Host> {
394394
let cmdline = crate::kernel::Cmdline::from_proc()?;
395395
let composefs_arg = cmdline
396-
.iter()
397-
.find(|x| x.key == b"composefs")
396+
.find("composefs")
398397
.ok_or_else(|| anyhow::anyhow!("Failed to find composefs parameter in kernel cmdline"))?;
399398
let booted_image_verity = composefs_arg
400399
.value

0 commit comments

Comments
 (0)