Move prepare-root karg helpers into otcore, add unit tests
authorColin Walters <walters@verbum.org>
Wed, 23 Aug 2023 20:06:23 +0000 (16:06 -0400)
committerColin Walters <walters@verbum.org>
Wed, 23 Aug 2023 21:11:10 +0000 (17:11 -0400)
commit20b8cb174c3e3aa482a856f0a4323849ce7b05de
tree4a616f61bf1d805d66af6c673758bf5b449e6c0f
parent445194921365d5552a052e8b91f51812799ac764
Move prepare-root karg helpers into otcore, add unit tests

Add long overdue unit testing coverage for this, which
at least slightly closes out the android boot CI gap.

Actually, this *copies* the karg parsing code into otcore because
it now uses glib, which we're not yet using in the static
prepare-root.  It's pretty tempting to drop support for the
static prepare root entirely.  But for now we'll live with some
code duplication.
Makefile-otcore.am
src/libostree/ostree-impl-system-generator.c
src/libotcore/otcore-prepare-root.c [new file with mode: 0644]
src/libotcore/otcore.h
src/switchroot/ostree-prepare-root.c
tests/test-otcore.c