Skip to content

Commit 39a3355

Browse files
install/composefs: Get image and transport source_imgref
Signed-off-by: Pragyan Poudyal <[email protected]>
1 parent 9275348 commit 39a3355

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

lib/src/install.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1492,10 +1492,13 @@ async fn initialize_composefs_repository(
14921492

14931493
let repo = open_composefs_repo(rootfs_dir)?;
14941494

1495-
let OstreeExtImgRef { transport, name } = &state.target_imgref.imgref;
1495+
let OstreeExtImgRef {
1496+
name: image_name,
1497+
transport,
1498+
} = &state.source.imageref;
14961499

14971500
// transport's display is already of type "<transport_type>:"
1498-
composefs_oci_pull(&Arc::new(repo), &format!("{transport}{name}",), None).await
1501+
composefs_oci_pull(&Arc::new(repo), &format!("{transport}{image_name}",), None).await
14991502
}
15001503

15011504
#[context("Setting up BLS boot")]
@@ -1567,7 +1570,8 @@ menuentry "Fedora Bootc UKI" {{
15671570
search --no-floppy --set=root --fs-uuid {rootfs_uuid}
15681571
chainloader /boot/EFI/Linux/{uki_id}.efi
15691572
}}
1570-
"#, uki_id=id.to_hex()
1573+
"#,
1574+
uki_id = id.to_hex()
15711575
);
15721576

15731577
std::fs::write(boot_dir.join("grub2/user.cfg"), grub_user_config)

0 commit comments

Comments
 (0)