From c3eee16c8c3546db07fe77118fecd64111011b1f Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 24 Aug 2023 20:12:09 -0400 Subject: [PATCH] lib: Bump to ostree-ext 0.11.5 And note the new `require_bootable()`, since we couldn't require that in the container image importer. Signed-off-by: Colin Walters --- lib/Cargo.toml | 2 +- lib/src/cli.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Cargo.toml b/lib/Cargo.toml index cd38dd95..61974663 100644 --- a/lib/Cargo.toml +++ b/lib/Cargo.toml @@ -11,7 +11,7 @@ rust-version = "1.64.0" [dependencies] anyhow = "1.0" camino = { version = "1.0.4", features = ["serde1"] } -ostree-ext = "0.11.2" +ostree-ext = "0.11.5" clap = { version= "4.2", features = ["derive"] } clap_mangen = { version = "0.2", optional = true } cap-std-ext = "2" diff --git a/lib/src/cli.rs b/lib/src/cli.rs index a099c929..98c2a202 100644 --- a/lib/src/cli.rs +++ b/lib/src/cli.rs @@ -283,6 +283,7 @@ async fn upgrade(opts: UpgradeOpts) -> Result<()> { let imgref = &OstreeImageReference::from(imgref.clone()); let mut imp = ostree_container::store::ImageImporter::new(&sysroot.repo(), imgref, config).await?; + imp.require_bootable(); match imp.prepare().await? { PrepareResult::AlreadyPresent(c) => { println!(