The purpose of the create subcommand is to take a
yaml based configuration and turn it into a rootfs
directory and convert into a ostree deployable branch.
This branch would be able to used create virtual machine
images and even linux containers.
To create an apt-ostree configuration use the sample
from config/debian/bookworm/bootstrap.yaml. You can
create a branch by running the following command:
sudo apt-ostree compose create --repo <path to repo> \
--base <config directory> \
<name of ostree branch>
If the ostree repo branch doesnt exist, then apt-ostree
will create the spcified repo in the repo flag.
Sample rootfs configuration include
* debian:
- bookworm
- bullseye
* starlingx:
- master
Testing:
PASSED Installed apt-ostree from git repo.
PASSED Run "apt-ostree compose create --base config/debian/bookworm \
--repo=/tmp/test debian/bookworm"
PASSED Checked for config in /tmp/test.
PASSED Ran "ostree --repo=/tmp/test refs" to see the "test"
branch.
Story: 2010867
Task: 48556
Change-Id: I7a311f1b93ea2ac80c7ab24efc9c51d0d990e5e0
Signed-off-by: Charles Short <charles.short@windriver.com>