From d54f8b72815365d8eafea75b66130c46ec437087 Mon Sep 17 00:00:00 2001 From: Isaac Hermida Date: Mon, 11 May 2026 18:09:28 +0200 Subject: [PATCH] dey-image-container: flatten LXC payload layout Generate the LXC payload tarball with config and rootfs/ at the archive root so it matches the documented DCP format and the strict installer expectations. Signed-off-by: Isaac Hermida --- .../recipes-core/images/dey-image-container-lxc.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta-digi-containers/recipes-core/images/dey-image-container-lxc.inc b/meta-digi-containers/recipes-core/images/dey-image-container-lxc.inc index 5228163be..81c7a96e7 100644 --- a/meta-digi-containers/recipes-core/images/dey-image-container-lxc.inc +++ b/meta-digi-containers/recipes-core/images/dey-image-container-lxc.inc @@ -22,7 +22,7 @@ do_image_lxc_bundle() { bbfatal "Expected rootfs tarball not found: ${rootfs_tar}" fi - lxc_dir="${workdir}/${CONTAINER_NAME}" + lxc_dir="${workdir}/lxc-payload" mkdir -p "${lxc_dir}/rootfs" bbnote "Extracting rootfs for LXC bundle..." @@ -41,7 +41,7 @@ do_image_lxc_bundle() { -e "s|@CONTAINER_INIT_SCRIPT@|${CONTAINER_INIT_SCRIPT}|g" \ "${config_in}" > "${lxc_dir}/config" - tar -C "${workdir}" -czf "${lxc_tar}" "${CONTAINER_NAME}" + tar -C "${lxc_dir}" -czf "${lxc_tar}" config rootfs if [ ! -s "${lxc_tar}" ]; then bbfatal "LXC bundle was not generated correctly: ${lxc_tar}"