From f6ec993ed627bc62177ad7b015d7b0d90557d71d Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 11 Oct 2022 10:07:02 -0400 Subject: [PATCH] upgrade: Warn and sleep if we find a deprecated v0 format container This is prep for https://github.com/ostreedev/ostree-rs-ext/issues/332 --- rust/src/sysroot_upgrade.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rust/src/sysroot_upgrade.rs b/rust/src/sysroot_upgrade.rs index 8e29cc2036..75f0f22bf1 100644 --- a/rust/src/sysroot_upgrade.rs +++ b/rust/src/sysroot_upgrade.rs @@ -84,6 +84,10 @@ async fn pull_container_async( PrepareResult::AlreadyPresent(r) => return Ok(r.into()), PrepareResult::Ready(r) => r, }; + if prep.export_layout == ostree_container::ExportLayout::V0 { + output_message(&format!("warning: pulled image is using deprecated v0 format; support will be dropped in a future release")); + std::thread::sleep(std::time::Duration::from_secs(5)); + } let progress_printer = tokio::task::spawn(async move { layer_progress_print(layer_progress).await }); let digest = prep.manifest_digest.clone();