All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bruce Ashfield <bruce.ashfield@gmail.com>
To: Tanguy Raufflet <tanguy.raufflet@savoirfairelinux.com>
Cc: meta-virtualization@lists.yoctoproject.org
Subject: Re: [meta-virtualization][PATCH 1/2] image-oci: add OCI runtime bundle output
Date: Sun, 29 Nov 2026 19:24:03 -0800 (PST)	[thread overview]
Message-ID: <6b0cec53.bef3c80f.218fba.5e25@mx.google.com> (raw)
In-Reply-To: <1294544681.753540.1795102531174.JavaMail.zimbra@savoirfairelinux.com>

> I've tested the OCI runtime bundle support on master-next with our ISMS
> container. This is really nice! I was able to reproduce our existing
> runtime configuration easily using the new variables.

Great to hear, thanks for testing it.

> The only issue I've found so far concerns rootfs ownership when using
> UID/GID mappings. For example, with:
>
> OCI_RUNTIME_UID_MAPPINGS = "0:231072:65536"
> OCI_RUNTIME_GID_MAPPINGS = "0:231072:65536"
>
> The generated config.json contains the correct mappings, but files such
> as rootfs/etc/passwd are archived with ownership 0:0, whereas I would
> expect 231072:231072 to match the configured mappings.

Agreed, that's a bug. The runtime doesn't change the rootfs owners, so
with the mappings set the files have to be owned by the host ids. The
fix shifts the owners through the mappings in config.json when the
bundle is archived, so with your values root's files are 231072:231072
and a uid 1000 file is 232072. A file owned by an id outside the
mappings is now a build error rather than a file the container can't
use.

It's on master-next now as "image-oci: own the bundle rootfs by the
mapped host ids" .. let me know if it works with the ISMS container.

Bruce

      reply	other threads:[~2026-11-30  3:24 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-30 14:47 [meta-virtualization][PATCH 1/2] image-oci: add OCI runtime bundle output Tanguy Raufflet
2026-09-30 14:47 ` [meta-virtualization][PATCH 2/2] app-container-oci-bundle.bb: add a new demo recipe using an OCI bundle Tanguy Raufflet
2026-09-30 15:56 ` [meta-virtualization][PATCH 1/2] image-oci: add OCI runtime bundle output Bruce Ashfield
2026-10-12 12:24   ` Tanguy Raufflet
2026-10-22 18:51     ` Bruce Ashfield
2026-11-03 13:16       ` Tanguy Raufflet
2026-11-05 17:24         ` Bruce Ashfield
2026-11-16  4:09         ` Bruce Ashfield
2026-11-19 15:35           ` Tanguy Raufflet
2026-11-30  3:24             ` Bruce Ashfield [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6b0cec53.bef3c80f.218fba.5e25@mx.google.com \
    --to=bruce.ashfield@gmail.com \
    --cc=meta-virtualization@lists.yoctoproject.org \
    --cc=tanguy.raufflet@savoirfairelinux.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.