All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-virtualization][PATCH v2 0/3] OCI multi-layer fixes for dnf5 and nginx
@ 2026-11-26  0:47 Tim Orling
  2026-11-26  0:47 ` [meta-virtualization][PATCH v2 1/3] image-oci: track multi-layer rootfs directories with pseudo Tim Orling
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Tim Orling @ 2026-11-26  0:47 UTC (permalink / raw)
  To: meta-virtualization; +Cc: Tim Orling

Since oe-core moved to dnf 5.4.7.0, every OCI_LAYER_MODE = "multi"
image fails to install its packages: layers, because the layer rootfs
under ${WORKDIR}/oci-layer-rootfs is not tracked by pseudo. Patch 1
fixes that.

Patches 2 and 3 fix the long-standing "OCI: Directory not found in
IMAGE_ROOTFS" warnings from app-container-nginx: empty_var_volatile
was wiping the container-volatile-fixup directories, and nginx's /run
and /var/log directories are never created outside of boot-time
tmpfiles.d.

Tested with the containers-library autobuilder target (aarch64 and
x86-64): all containers build with no warnings.

[YOCTO #16531]

Changes in v2:
- Patch 1: the commit message now explains the root cause. Under
  pseudo, rpm sees uid 0 and chowns the rpmdb directory it creates to
  0:0. The layer rootfs is not tracked, so that chown is real, and
  bitbake's network-isolation user namespace has no mapping for uid 0,
  so it fails with EINVAL. dnf4 ignored that failure; dnf5 does not.
- Patch 1: also explains why the layer install cannot run with pseudo
  disabled instead: rpm still chroots into the install root for every
  transaction. That was tried on the autobuilder, and every package
  layer came out empty with "Rpm transaction failed".
- All patches: no AI attribution in the code, comments cut to one line,
  steps to reproduce added to the commit messages.
- Sent with the konsulko.com address in the From: header, so the
  author survives the list.

Tim Orling (3):
  image-oci: track multi-layer rootfs directories with pseudo
  container-volatile-fixup: run after empty_var_volatile
  app-container-nginx: create /run/nginx and /var/log/nginx in rootfs

 classes/container-volatile-fixup.bbclass         | 3 ++-
 classes/image-oci.bbclass                        | 2 ++
 recipes-containers/images/app-container-nginx.bb | 6 ++++++
 3 files changed, 10 insertions(+), 1 deletion(-)


base-commit: 89b00d096a432000766729cd721ae647af500112
-- 
2.56.1


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

end of thread, other threads:[~2026-11-30  3:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-26  0:47 [meta-virtualization][PATCH v2 0/3] OCI multi-layer fixes for dnf5 and nginx Tim Orling
2026-11-26  0:47 ` [meta-virtualization][PATCH v2 1/3] image-oci: track multi-layer rootfs directories with pseudo Tim Orling
2026-11-30  3:48   ` Bruce Ashfield
2026-11-26  0:47 ` [meta-virtualization][PATCH v2 2/3] container-volatile-fixup: run after empty_var_volatile Tim Orling
2026-11-30  3:48   ` Bruce Ashfield
2026-11-26  0:47 ` [meta-virtualization][PATCH v2 3/3] app-container-nginx: create /run/nginx and /var/log/nginx in rootfs Tim Orling
2026-11-30  3:48   ` Bruce Ashfield

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.