mbox series

[0/5] Do not leak DISTRO_APT_PREMIRRORS into the image

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

Message

Felix Moessbauer Dec. 3, 2026, 3:32 p.m. UTC
We currently end up with a sources list containing DISTRO_APT_PREMIRRORS
in the image, despite the documentation explicitly says otherwise.
The root cause is a chain of refactorings going back to the introduction
of mmdebstrap in 2024. This series re-adds the code that became unused
due to not correctly cleaning up the bootstrap list, fixes the
final apt sources when using mmdebstrap and adds a test.

Best regards,
Felix Moessbauer
Siemens AG

Felix Moessbauer (5):
  Revert "bootstrap: drop unused APTSRCS_INIT"
  Revert "mmdebstrap: drop orphan upload of APTSRCS_INIT to
    /etc/apt/sources-list"
  rootfs: ship unmodified DISTRO_APT_SOURCES if not requested otherwise
  docs: add note regarding secrets in DISTRO_APT_PREMIRRORS
  testsuite: check that DISTRO_APT_PREMIRRORS do not leak into the image

 RECIPE-API-CHANGELOG.md                       |  7 +++++
 doc/user_manual.md                            |  1 +
 meta/classes-recipe/bootstrap.bbclass         |  3 ++
 meta/classes-recipe/image.bbclass             |  1 +
 meta/classes-recipe/rootfs.bbclass            | 15 ++++++++++
 meta/classes-recipe/sdk.bbclass               |  2 +-
 .../isar-mmdebstrap/isar-mmdebstrap.inc       |  1 +
 testsuite/citest.py                           | 29 +++++++++++++++++++
 8 files changed, 58 insertions(+), 1 deletion(-)