public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH v3 0/5] Improving base-apt usage PoC
@ 2022-03-25 10:32 Uladzimir Bely
  2022-03-25 10:32 ` [PATCH v3 1/5] Add debrepo python script handling base-apt Uladzimir Bely
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Uladzimir Bely @ 2022-03-25 10:32 UTC (permalink / raw)
  To: isar-users

Currently, base-apt is used in the following way:
* At first build every deb file that took part in installing is cached
in directory $DL_DIR/deb/. Debootstrap is done from remote source.
* At second build, `base-apt` repo is created from previously downloaded
debs (if ISAR_USE_CACHED_BASE_REPO is set). Debootstrap and installing
packages later is done from this local repo

The idea of this patchset is to precreate `base-apt` at first build and
use it later for all steps that require any package downloads (build
dependencies. rootfs populate, etc). So, no second build is required
to get ready-to-use base-apt.

Currently, only native builds are supported. Architecture related
dependencies predownloading is not yet ready, so cross-builds are not
working at the moment.

In the future, there are plans to switch from debootstrap to mmdebstrap
that is able to work without sudo and uses more clean (apt/python-apt)
approach in comparison with debootstrap.

Changes since v2:
 - populate base-apt before using at all steps of native build.

Changes since v1:
 - rebased on latest next;
 - updated patchset description.

Uladzimir Bely (5):
  Add debrepo python script handling base-apt
  meta: Use cached base-apt repo to debootstrap
  meta: always use base-apt repo in local mode
  base-apt: Predownload packages to base-apt before install.
  draft: make isar-apt repo visible for base-apt

 meta-isar/conf/distro/ubuntu-focal.conf       |   4 +
 meta-isar/conf/distro/ubuntu.public.key       |  53 +++
 meta/classes/buildchroot.bbclass              |  10 +-
 meta/classes/dpkg-base.bbclass                |   8 +
 meta/classes/dpkg-gbp.bbclass                 |   7 +
 meta/classes/dpkg.bbclass                     |   7 +
 meta/classes/image-locales-extension.bbclass  |   7 +
 meta/classes/image-tools-extension.bbclass    |   7 +
 meta/classes/rootfs.bbclass                   |  30 +-
 .../isar-bootstrap/isar-bootstrap.inc         |  59 ++-
 scripts/debrepo                               | 363 ++++++++++++++++++
 11 files changed, 526 insertions(+), 29 deletions(-)
 create mode 100644 meta-isar/conf/distro/ubuntu.public.key
 create mode 100755 scripts/debrepo

-- 
2.20.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-03-30 13:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-25 10:32 [PATCH v3 0/5] Improving base-apt usage PoC Uladzimir Bely
2022-03-25 10:32 ` [PATCH v3 1/5] Add debrepo python script handling base-apt Uladzimir Bely
2022-03-25 10:32 ` [PATCH v3 2/5] meta: Use cached base-apt repo to debootstrap Uladzimir Bely
2022-03-25 10:32 ` [PATCH v3 3/5] meta: always use base-apt repo in local mode Uladzimir Bely
2022-03-25 10:32 ` [PATCH v3 4/5] base-apt: Predownload packages to base-apt before install Uladzimir Bely
2022-03-30 13:41   ` Moessbauer, Felix
2022-03-25 10:32 ` [PATCH v3 5/5] draft: make isar-apt repo visible for base-apt Uladzimir Bely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox