meta-virtualization/classes
Bruce Ashfield 3d431848b3 oci-multiarch: fix MC defaults, deploy dependency, and OCI layout
Three issues prevented oci-multiarch.bbclass from producing usable
multi-architecture container images:

1. MC defaults pointed to vruntime-* multiconfigs, whose BBMASK blocks
   OCI tooling. Changed to container-* multiconfigs which use the new
   vcontainer distro without BBMASK.

2. mcdepends targeted do_image_oci, but the OCI output is only deployed
   to deploy/images/ by the later do_image_complete task. The bbclass
   then failed to find the OCI directory at the expected deploy path.
   The original implementation assumed do_image_oci was the final step,
   but OE-core's image pipeline has a separate deploy phase.

3. The OCI Image Index was written directly into index.json with
   multiple manifest entries. This is valid per the OCI spec but skopeo
   requires index.json to reference a single entry when there are
   multiple images. The fix writes the multi-platform image index as a
   blob in blobs/sha256/ and has index.json reference it with a single
   entry of mediaType application/vnd.oci.image.index.v1+json. This
   nested layout is what tools like buildah and crane produce for
   multi-arch images, and is required for 'skopeo copy --all' to work.

Also adds container-base-multiarch.bb recipe that wires up container-base
for aarch64 + x86_64 builds via the oci-multiarch class.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2026-05-10 13:58:10 +00:00
..
cni_networking.bbclass global: overrides syntax conversion 2021-08-02 17:17:53 -04:00
container-bundle.bbclass container-bundle: add explicit do_fetch dependency on skopeo-native 2026-03-12 19:59:59 +00:00
container-common.bbclass classes: factor out shared functions to container-common.bbclass 2026-02-09 03:32:52 +00:00
container-cross-install.bbclass vcontainer: fix yocto-check-layer mcdepends parse error 2026-02-09 20:03:27 +00:00
container-host.bbclass containers: introduce container-host class 2023-02-17 15:21:53 -05:00
container-registry.bbclass container-registry: add secure registry infrastructure with TLS and auth 2026-02-09 03:34:12 +00:00
go-mod-discovery.bbclass oe-go-mod-fetcher: add license scanning for Go module dependencies 2026-04-28 18:49:19 +00:00
go-mod-vcs.bbclass go-mod-vcs.bbclass: handle pure hybrid mode gracefully 2026-03-26 17:55:14 +00:00
image-oci-sloci-image.inc image-oci: fix symlink loop on image rebuild 2026-02-09 03:32:52 +00:00
image-oci-umoci.inc image-oci-umoci: create usrmerge symlinks in multi-layer mode 2026-02-10 21:04:20 +00:00
image-oci.bbclass image-oci: update oci-iamge-tools + runc instructions 2026-03-03 04:36:40 +00:00
meta-virt-cfg.bbclass conf: defer DISTRO_FEATURE check to bbclass processing 2020-02-10 10:28:38 -05:00
meta-virt-container-cfg.bbclass container-registry: make IMAGE_FEATURES local to image recipes 2026-03-12 17:29:17 +00:00
meta-virt-depreciated-warning.bbclass classes: add depreciated warning bbclass 2024-03-15 17:17:19 +00:00
meta-virt-hosts.bbclass config: introduce hostname generation hooks 2021-12-13 15:59:35 -05:00
meta-virt-k8s-cfg.bbclass conf: defer DISTRO_FEATURE check to bbclass processing 2020-02-10 10:28:38 -05:00
meta-virt-xen-cfg.bbclass xen: apply layer settings when xen DISTRO_FEATURE is enabled 2020-07-06 16:25:55 -04:00
oci-multiarch.bbclass oci-multiarch: fix MC defaults, deploy dependency, and OCI layout 2026-05-10 13:58:10 +00:00
qemuboot-testimage-network.bbclass qemuboot: add note about virt_networking bbclass 2024-11-15 19:50:00 +00:00
qemuboot-xen-defaults.bbclass xen: Disable highmem on qemuarm 2022-06-20 12:08:37 -04:00
qemuboot-xen-dtb.bbclass Revert "xen: Disable PCI on qemuarm with Xen" 2022-06-20 12:07:45 -04:00
sanity-meta-virt.bbclass sanity: default virtualization distro check to false 2026-03-10 13:41:16 +00:00
virt_networking.bbclass xen: enable networking and guest image bundling 2024-11-15 19:50:00 +00:00
xen-guest-bundle.bbclass xen-guest-bundle: drop QA skip for installed-vs-shipped 2026-03-11 23:26:18 +00:00
xen-guest-cross-install.bbclass xen: add guest bundling infrastructure with cross-install class 2026-02-26 01:05:01 +00:00