mbox series

[0/6] Model isar-exclude-docs as rootfs feature

Message ID 20260924073811.4058349-1-felix.moessbauer@siemens.com
Headers show
Series Model isar-exclude-docs as rootfs feature | expand

Message

MOESSBAUER, Felix Sept. 24, 2026, 7:38 a.m. UTC
The isar-exclude-docs package provides mechanisms to exclude
documentation from the image. Technically this is implemented
by a dpkg filter, as well as a postinst script to strip the
documentation installed prior to installing the isar-exclude-docs
package.

This has the major drawback of first installing the documentation
(as isar-exclude-docs is installed along with ROOTFS_PACKAGES) and
then removing it again - which is even an emulated task and by that
super slow on a larger rootfs. Further, it does not handle cases
where docs are generated in a postinst script.

We now change this to configure apt prior to installing packages.
This results in less being installed into the rootfs. After that,
a final cleanup path from outside the chroot strip the remaining bits.

Best regards,
Felix Moessbauer

Felix Moessbauer (6):
  rootfs: add feature to clean isar generated dpkg config
  image: add IMAGE_ROOTFS_FEATURES to set rootfs features of the image
  isar-exclude-docs: model via rootfs feature
  rootfs: also purge package changelogs on exclude-docs
  kas: port isar-exclude-docs to rootfs feature
  testsuite: replace isar-exclude-docs by rootfs feature

 RECIPE-API-CHANGELOG.md                       | 14 ++++++
 kas/opt/Kconfig                               |  9 ++++
 .../exclude-docs.yaml}                        |  4 +-
 kas/package/Kconfig                           | 11 -----
 meta-isar/conf/local.conf.sample              |  6 ++-
 .../recipes-core/images/isar-image-ci.bb      |  2 +
 .../recipes-core/images/isar-rootfs-ci.bb     |  1 +
 meta/classes-recipe/image.bbclass             |  3 ++
 meta/classes-recipe/rootfs.bbclass            | 45 +++++++++++++++++++
 .../isar-exclude-docs_0.2.3.bb                |  4 ++
 scripts/generate_yaml.sh                      |  1 -
 testsuite/cibuilder.py                        |  1 -
 12 files changed, 85 insertions(+), 16 deletions(-)
 rename kas/{package/pkg_isar-exclude-docs.yaml => opt/exclude-docs.yaml} (58%)