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

Message ID 20260601141551.1997347-1-clara.kowalsky@siemens.com
State New
Headers show
Series [1/2] mmdebstrap: drop orphan upload of APTSRCS_INIT to /etc/apt/sources-list | expand

Commit Message

Clara Kowalsky June 1, 2026, 2:15 p.m. UTC
The path /etc/apt/sources-list (not dot) is not read by apt. The only
consumer was a fallback in image.bbclass do_rootfs_finalize that moved
the file to /etc/apt/sources.list.d/bootstrap.list when the directory
was empty after debootstrap. That fallback was removed in commit
d58332b2 ("bootstrap: remove isar-bootstrap support").
Mmdebstrap writes bootstrap.list itself. The leftover hook just ships an
unused file in every rootfs.

Signed-off-by: Clara Kowalsky <clara.kowalsky@siemens.com>
---
 meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc | 1 -
 1 file changed, 1 deletion(-)

Patch

diff --git a/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc b/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc
index 6c2cb170..cef953ef 100644
--- a/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc
+++ b/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc
@@ -229,7 +229,6 @@  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' \