base: Embed config in image

The idea here is this can be reused by later builds.

Signed-off-by: Colin Walters <walters@verbum.org>
This commit is contained in:
Colin Walters 2025-02-07 13:35:00 -05:00
parent 468b413481
commit 9415176fdb
1 changed files with 3 additions and 1 deletions

View File

@ -25,7 +25,9 @@ for x in etc/dnf etc/yum.repos.d etc/pki/rpm-gpg; do
done
# And copy to the workdir; TODO fix this in rpm-ostree
cp /etc/yum.repos.d/*.repo base
env RUST_LOG=debug rpm-ostree experimental compose rootfs --source-root=/repos base/manifest.yaml /target-rootfs
rpm-ostree experimental compose rootfs --source-root=/repos base/manifest.yaml /target-rootfs
# Embed the configuration in the image itself, so that it can be used by later builds as well
cp -a base /target-rootfs/usr/lib/sysimage/base-image-manifests
EORUN
# This pulls in the rootfs generated in the previous step