From 9415176fdbab64594b745e7b8381a4b0b6e3ed1c Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Fri, 7 Feb 2025 13:35:00 -0500 Subject: [PATCH] base: Embed config in image The idea here is this can be reused by later builds. Signed-off-by: Colin Walters --- Containerfile.base | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Containerfile.base b/Containerfile.base index 250c98a..1b4a796 100644 --- a/Containerfile.base +++ b/Containerfile.base @@ -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