All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bruce Ashfield <bruce.ashfield@gmail.com>
To: Tim Orling <tim.orling@konsulko.com>
Cc: meta-virtualization@lists.yoctoproject.org
Subject: Re: [meta-virtualization][PATCH v2 2/3] container-volatile-fixup: run after empty_var_volatile
Date: Sun, 29 Nov 2026 19:48:02 -0800 (PST)	[thread overview]
Message-ID: <6b0cf1f2.0f39aca5.1aaa61.41f0@mx.google.com> (raw)
In-Reply-To: <20261126004756.89781-3-tim.orling@konsulko.com>

merged

Bruce

> image.bbclass inherits rootfs-postcommands with inherit_defer, so its
> "ROOTFS_POSTPROCESS_COMMAND += 'empty_var_volatile'" is added after the
> recipe's own "+= rootfs_fixup_var_volatile". base-files' fstab mounts
> tmpfs on /var/volatile, so empty_var_volatile then deletes the
> volatile/tmp and volatile/log directories the fixup just created,
> leaving /var/log and /var/tmp as dangling symlinks. Multi-layer
> directories: layers then warn:
>
>   OCI: Directory not found in IMAGE_ROOTFS: /var/volatile/log
>   OCI: Directory not found in IMAGE_ROOTFS: /var/volatile/tmp
>
> Use :append so the fixup runs after empty_var_volatile.
>
> To reproduce, build app-container-nginx (OCI_LAYER_MODE = "multi",
> inherits container-volatile-fixup) and check log.do_image_oci for the
> warnings above; ${IMAGE_ROOTFS}/var/volatile is empty.
>
> Tested with the containers-library autobuilder target (aarch64 and
> x86-64).
>
> AI-Generated: Uses Claude Code (Claude Opus 5.5)
> Signed-off-by: Tim Orling <tim.orling@konsulko.com>
> ---
>  classes/container-volatile-fixup.bbclass | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>

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

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

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=6b0cf1f2.0f39aca5.1aaa61.41f0@mx.google.com \
    --to=bruce.ashfield@gmail.com \
    --cc=meta-virtualization@lists.yoctoproject.org \
    --cc=tim.orling@konsulko.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.