Skip to content

Commit

Permalink
encapsulate: Add containers.bootc label when we add ostree.bootable
Browse files Browse the repository at this point in the history
See containers/bootc#299

Since we want to move ostree more into the background, this new
label name puts the focus on bootc.
  • Loading branch information
cgwalters committed Feb 5, 2024
1 parent 34fea14 commit cb03227
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 cb03227

Please sign in to comment.