From cb0322748419c45b5db4f16e543f6a91b128dcaf Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 5 Feb 2024 13:42:08 -0500 Subject: [PATCH] encapsulate: Add `containers.bootc` label when we add `ostree.bootable` See https://github.com/containers/bootc/pull/299 Since we want to move ostree more into the background, this new label name puts the focus on bootc. --- lib/src/container/encapsulate.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/src/container/encapsulate.rs b/lib/src/container/encapsulate.rs index 7aa9ddcff..ba6f41872 100644 --- a/lib/src/container/encapsulate.rs +++ b/lib/src/container/encapsulate.rs @@ -68,6 +68,7 @@ fn commit_meta_to_labels<'a>( #[allow(clippy::explicit_auto_deref)] if let Some(v) = meta.lookup::(*ostree::METADATA_KEY_BOOTABLE)? { labels.insert(ostree::METADATA_KEY_BOOTABLE.to_string(), v.to_string()); + labels.insert("containers.bootc".into(), "1".into()); } // Handle any other string-typed values here. for k in &[&ostree::METADATA_KEY_LINUX] {