checkout: Add API to directly checkout composefs
authorColin Walters <walters@verbum.org>
Wed, 22 May 2024 22:16:48 +0000 (18:16 -0400)
committerColin Walters <walters@verbum.org>
Thu, 23 May 2024 00:38:24 +0000 (20:38 -0400)
commitc0a715f1e2ba04bd262e8166c0c5465331743f19
tree03b6b1b0e6dc4473745de2da755729b649998aec
parent64a09da0eb5ca4dade83125a2ebc47b52c60c5a5
checkout: Add API to directly checkout composefs

We were missing the simple, obvious API and CLI to go
from ostree commit -> composefs.

Internally, we had `ostree_repo_checkout_composefs`
with the right "shape" mostly, except it had more code
in the deploy path to turn that into a composefs.

Add a straightforward public API that does what
the deploy code did before, and then the old
API becomes an explicitly internal helper with an `_`
prefix.

Goals:

- Lead towards a composefs-oriented future
- This makes the composefs logic more testable directly

Signed-off-by: Colin Walters <walters@verbum.org>
Makefile-libostree.am
apidoc/ostree-sections.txt
src/libostree/libostree-devel.sym
src/libostree/ostree-repo-checkout.c
src/libostree/ostree-repo-composefs.c
src/libostree/ostree-repo-private.h
src/libostree/ostree-repo.h
src/libostree/ostree-sysroot-deploy.c
src/ostree/ot-builtin-checkout.c
tests/test-composefs.sh