[2/5] Revert "mmdebstrap: drop orphan upload of APTSRCS_INIT to /etc/apt/sources-list"

Message ID 20261203153249.1727469-3-felix.moessbauer@siemens.com
State New
Headers show
Series Do not leak DISTRO_APT_PREMIRRORS into the image | expand

Commit Message

Felix Moessbauer Dec. 3, 2026, 3:32 p.m. UTC
This reverts commit dcce2128544fa0de65c7491fc0527cc752bf4d86.

The file was considered orphaned as its consumer in image.bbclass got
removed together with isar-bootstrap. However, that left images with
the build-time sources list (including DISTRO_APT_PREMIRRORS rewrites)
instead of the one from DISTRO_APT_SOURCES. Ship the unmodified list
again in the bootstrap rootfs, so it can be installed into the final
rootfs.

Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
---
 meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc | 1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc b/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc
index ef718a26..934a3208 100644
--- a/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc
+++ b/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc
@@ -248,6 +248,7 @@  do_bootstrap() {
                    --setup-hook='mkdir -p "$1/var/cache/apt/archives/"' \
                    --setup-hook="$extra_setup" \
                    --setup-hook='upload "${APTPREFS}" /etc/apt/preferences.d/bootstrap' \
+                   --setup-hook='upload "${APTSRCS_INIT}" /etc/apt/sources-list' \
                    --setup-hook='upload "${WORKDIR}/locale" /etc/locale' \
                    --setup-hook='mkdir -p "$1/etc/apt/trusted.gpg.d"' \
                    --setup-hook='sync-in "${WORKDIR}/trusted.gpg.d" /etc/apt/trusted.gpg.d' \