Skip to content

Commit 2313e3c

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

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

crates/lib/src/install.rs

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

14861486
let repo = open_composefs_repo(rootfs_dir)?;
14871487

1488-
let OstreeExtImgRef { transport, name } = &state.target_imgref.imgref;
1488+
let OstreeExtImgRef {
1489+
name: image_name,
1490+
transport,
1491+
} = &state.source.imageref;
14891492

14901493
// transport's display is already of type "<transport_type>:"
1491-
composefs_oci_pull(&Arc::new(repo), &format!("{transport}{name}",), None).await
1494+
composefs_oci_pull(&Arc::new(repo), &format!("{transport}{image_name}",), None).await
14921495
}
14931496

14941497
#[context("Setting up BLS boot")]
@@ -1560,7 +1563,8 @@ menuentry "Fedora Bootc UKI" {{
15601563
search --no-floppy --set=root --fs-uuid {rootfs_uuid}
15611564
chainloader /boot/EFI/Linux/{uki_id}.efi
15621565
}}
1563-
"#, uki_id=id.to_hex()
1566+
"#,
1567+
uki_id = id.to_hex()
15641568
);
15651569

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

0 commit comments

Comments
 (0)