Cedric Hombourger
unread,May 15, 2025, 11:07:37 AM5/15/25Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to isar-...@googlegroups.com, felix.mo...@siemens.com, Cedric Hombourger
When building root file-systems for a foreign architecture and needing
to cache source packages, apt will be called from within the rootfs and
consequently be executed under QEMU: this is terribly slow especially
considering that source packages are downloaded one by one. This RFC
patch series introduces a wrapper function to run native commands
against a rootfs with our special mounts such as /isar-apt. Some basic
tests were performed to smoke test this approach and evaluate its
performance. It should be noted that the changes introduce a new
dependency to bubblewrap. That would need to be documented if moving
forward and some alignment with projects such as kas would be required.
It is believed that this approach could be implemented in other places
and further remove places where we would need elevated privileges.
Cedric Hombourger (2):
rootfs: introduce wrapper to run native commands against a rootfs
deb-dl-dir: optimize caching of source packages using apt natively
meta/classes/deb-dl-dir.bbclass | 36 +++++--------------
meta/classes/rootfs.bbclass | 64 +++++++++++++++++++++++++++++++++
2 files changed, 72 insertions(+), 28 deletions(-)
--
2.39.5