Skip to content

Commit

Permalink
Merge pull request containers#595 from cgwalters/add-containers-bootc
Browse files Browse the repository at this point in the history
encapsulate: Add `containers.bootc` label when we add `ostree.bootable`
  • Loading branch information
jmarrero authored Feb 5, 2024
2 parents a5fadff + cb03227 commit 47b1040
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/src/container/encapsulate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ fn commit_meta_to_labels<'a>(
#[allow(clippy::explicit_auto_deref)]
if let Some(v) = meta.lookup::<bool>(*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] {
Expand Down

0 comments on commit 47b1040

Please sign in to comment.