Skip to content

Commit

Permalink
upgrade: Warn and sleep if we find a deprecated v0 format container
Browse files Browse the repository at this point in the history
  • Loading branch information
cgwalters committed Oct 11, 2022
1 parent 3526bb5 commit f6ec993
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rust/src/sysroot_upgrade.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit f6ec993

Please sign in to comment.