mbox series

[RFC,0/1] Use host apt to reduce buildtime and size of rootfs

Message ID 20260910100700.3998213-1-felix.moessbauer@siemens.com
Headers show
Series Use host apt to reduce buildtime and size of rootfs | expand

Message

Felix Moessbauer Sept. 10, 2026, 10:06 a.m. UTC
This is a more throughout attempt to ONLY use the host apt to assemble
the rootfs. The key idea is to behave similar to mmdebstrap:
Use the host apt for all apt operations, but run dpkg inside the chroot.
This also allows us (part of this series), to not have apt at all in the
generated rootfs. If needed, users can just include it via
IMAGE_PREINSTALL += "apt".

The series is still in quite an early state and does not support the
base apt yet. As the base-apt is anyways currently being reworked, I
do not plan to support it as part of this series.

Review comments are highly welcome.

Best regards,
Felix Moessbauer
Siemens AG

Felix Moessbauer (1):
  rootfs: use host apt to install packages into rootfs

 meta-isar/conf/distro/raspios-bullseye.conf   |   2 +
 meta-isar/conf/distro/ubuntu-focal.conf       |   3 +
 meta/classes-recipe/deb-dl-dir.bbclass        |  34 ++++
 meta/classes-recipe/dpkg-source.bbclass       |  30 ++--
 .../image-account-extension.bbclass           |   1 +
 .../image-locales-extension.bbclass           |  13 +-
 meta/classes-recipe/rootfs.bbclass            | 145 +++++++-----------
 meta/classes-recipe/sdk.bbclass               |   5 +-
 .../isar-mmdebstrap/isar-mmdebstrap.inc       |  19 +--
 .../sbom-chroot/sbom-chroot.bb                |   2 +-
 .../sbuild-chroot/sbuild-chroot.inc           |   1 +
 11 files changed, 129 insertions(+), 126 deletions(-)