Skip to content

Commit bedaccf

Browse files
authored
Merge pull request #399 from cgwalters/more-image-output-cleanup
More image output cleanup
2 parents d039f26 + 38296ea commit bedaccf

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lib/src/deploy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ pub(crate) async fn stage(
265265
)
266266
.await?;
267267
crate::deploy::cleanup(sysroot).await?;
268-
println!("Queued for next boot: {}", spec.image);
268+
println!("Queued for next boot: {:#}", spec.image);
269269
if let Some(version) = image.version.as_deref() {
270270
println!(" Version: {version}");
271271
}

lib/src/install.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -622,13 +622,10 @@ async fn initialize_ostree_root_from_self(
622622
options.kargs = Some(kargs.as_slice());
623623
options.target_imgref = Some(&state.target_imgref);
624624
options.proxy_cfg = proxy_cfg;
625-
println!("Creating initial deployment");
626-
let target_image = state.target_imgref.to_string();
625+
println!("Deploying container image");
627626
let imgstate =
628627
ostree_container::deploy::deploy(&sysroot, stateroot, &src_imageref, Some(options)).await?;
629-
let digest = imgstate.manifest_digest.as_str();
630-
println!("Installed: {target_image}");
631-
println!(" Digest: {digest}");
628+
println!("Deployment complete");
632629

633630
sysroot.load(cancellable)?;
634631
let deployment = sysroot
@@ -1048,7 +1045,10 @@ async fn prepare_install(
10481045
let (override_disable_selinux, setenforce_guard) =
10491046
reexecute_self_for_selinux_if_needed(&source, config_opts.disable_selinux)?;
10501047

1051-
println!("Installing: {:#}", &target_imgref);
1048+
println!("Installing image: {:#}", &target_imgref);
1049+
if let Some(digest) = source.digest.as_deref() {
1050+
println!("Digest: {digest}");
1051+
}
10521052

10531053
let install_config = config::load_config()?;
10541054
tracing::debug!("Loaded install configuration");

0 commit comments

Comments
 (0)