[v4,0/7] Imager schroot migration

Message ID 20230511105020.1881496-1-amikan@ilbers.de
Headers show
Series Imager schroot migration | expand

Message

Anton Mikanovich May 11, 2023, 10:50 a.m. UTC
This patchset moves Isar imager from buildchroot to schroot usage as the next
step after moving to sbuild.
​
Imagers of every target are now running in separate schroot sessions with
independent overlays on top of basic unchanged schroot. Any changes made inside
overlay will be dropped after the usage to keep basic schroot clean.
​
Changes since v3:
- Rebased on next
- Fixed full CI build issues
- Add documentation updates
- Fix task name in CI
- Some code cleanup
​
Changes since v2:
- Rebased on next
- Do not keep schroot session open outside tasks
- Get rid of final cleanup code
- Fix sstate test case
- Get back buildchroot removing
​
Changes since v1:
- Rebased on next and bitbake update
- Fix some build cases

Anton Mikanovich (7):
  isar-apt: Move cleanup to postprocessing
  imager: Migrate from buildchroot to schroot
  imager: Move image types to schroot
  imager: Split imager deps between image types
  CI: Fix used chroot recipe name
  meta: Remove buildchroot
  doc: Update chroot documentation

 doc/offline.md                                |   2 +-
 doc/technical_overview.md                     | 107 +++++++++---------
 doc/user_manual.md                            |  53 +++++----
 meta-isar/conf/local.conf.sample              |   2 +-
 meta/classes/buildchroot.bbclass              |  59 ----------
 meta/classes/crossvars.bbclass                |   6 -
 meta/classes/deb-dl-dir.bbclass               |   4 +-
 meta/classes/image-tools-extension.bbclass    |  99 +++++++++++-----
 meta/classes/image.bbclass                    |  35 +++---
 meta/classes/imagetypes_vm.bbclass            |   9 +-
 meta/classes/imagetypes_wic.bbclass           |  89 +++++----------
 meta/classes/isar-events.bbclass              |   1 -
 meta/classes/rootfs.bbclass                   |  12 ++
 meta/conf/bitbake.conf                        |   3 -
 .../buildchroot/buildchroot-host.bb           |  13 ---
 .../buildchroot/buildchroot-target.bb         |  10 --
 .../buildchroot/buildchroot.inc               |  73 ------------
 .../buildchroot/files/build.sh                |  17 ---
 .../buildchroot/files/common.sh               |  32 ------
 .../buildchroot/files/configscript.sh         |  15 ---
 .../buildchroot/files/deps.sh                 |  47 --------
 .../sbuild-chroot/sbuild-chroot.inc           |   1 +
 scripts/contrib/convert-overrides.py          |   2 +-
 testsuite/cibase.py                           |   8 +-
 24 files changed, 218 insertions(+), 481 deletions(-)
 delete mode 100644 meta/classes/buildchroot.bbclass
 delete mode 100644 meta/recipes-devtools/buildchroot/buildchroot-host.bb
 delete mode 100644 meta/recipes-devtools/buildchroot/buildchroot-target.bb
 delete mode 100644 meta/recipes-devtools/buildchroot/buildchroot.inc
 delete mode 100644 meta/recipes-devtools/buildchroot/files/build.sh
 delete mode 100644 meta/recipes-devtools/buildchroot/files/common.sh
 delete mode 100644 meta/recipes-devtools/buildchroot/files/configscript.sh
 delete mode 100644 meta/recipes-devtools/buildchroot/files/deps.sh