From 857587615dc36d2d99e1a9bd36486f4267298971 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 11 Mar 2021 01:36:13 +0000 Subject: Add an API+CLI to inject metadata for bootable OSTree commits I was doing some rpm-ostree work and I wanted to compare two OSTree commits to see if the kernel has changed. I think this should be a lot more natural. Add `ostree commit --bootable` which calls into a new generic library API `ostree_commit_metadata_for_bootable()` that discovers the kernel version and injects it as an `ostree.linux` metadata key. And for extra clarity, add an `ostree.bootable` key. It's interesting because the "core" OSTree layer is all about generic files, but this is adding special APIs around bootable OSTree commits (as opposed to e.g. flatpak as well as things like rpm-ostree's pkgcache refs). Eventually, I'd like to ensure everyone is using this and hard require this metadata key for the `ostree admin deploy` flow - mainly to prevent accidents. --- bash/ostree | 1 + 1 file changed, 1 insertion(+) (limited to 'bash') diff --git a/bash/ostree b/bash/ostree index 3cc2e04a..d1de8530 100644 --- a/bash/ostree +++ b/bash/ostree @@ -321,6 +321,7 @@ _ostree_commit() { --canonical-permissions --editor -e --generate-sizes + --bootable --link-checkout-speedup --no-xattrs --orphan -- cgit v1.2.1