From: Bruce Ashfield <bruce.ashfield@gmail.com>
To: Qi.Chen@windriver.com
Cc: meta-virtualization@lists.yoctoproject.org
Subject: Re: [meta-virtualization][PATCH] crun: fix CRUN_AS_RUNC checking
Date: Tue, 6 Jan 2026 14:37:21 -0500 [thread overview]
Message-ID: <aV1kcXX5tlH5AkdV@gmail.com> (raw)
In-Reply-To: <20251215075204.1048461-1-Qi.Chen@windriver.com>
In message: [meta-virtualization][PATCH] crun: fix CRUN_AS_RUNC checking
on 15/12/2025 Chen Qi via lists.yoctoproject.org wrote:
> From: Chen Qi <Qi.Chen@windriver.com>
>
> We have in this recipe:
> CRUN_AS_RUNC ?= "true"
>
> The expected behavior is that if we set it to "false", the symlink
> is not created.
The expected behaviour is that if it was set to
anything the symlink would be created, if it was
not set, or cleared nothing is created.
That is a pattern you'll see in many of my
scripts and classes.
Maybe a comment in the code to indicate that
is the case ?
i.e. # clear this variable to disable symlink creation
Cheers,
Bruce
>
> Fix the check to achieve this expected behavior.
>
> Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
> ---
> recipes-containers/crun/crun_git.bb | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/recipes-containers/crun/crun_git.bb b/recipes-containers/crun/crun_git.bb
> index edaf15b8..25e76239 100644
> --- a/recipes-containers/crun/crun_git.bb
> +++ b/recipes-containers/crun/crun_git.bb
> @@ -52,7 +52,7 @@ do_configure:prepend () {
>
> do_install() {
> oe_runmake 'DESTDIR=${D}' install
> - if [ -n "${CRUN_AS_RUNC}" ]; then
> + if ${CRUN_AS_RUNC}; then
> ln -sr "${D}/${bindir}/crun" "${D}${bindir}/runc"
> fi
> }
> --
> 2.43.0
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#9480): https://lists.yoctoproject.org/g/meta-virtualization/message/9480
> Mute This Topic: https://lists.yoctoproject.org/mt/116789087/1050810
> Group Owner: meta-virtualization+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [bruce.ashfield@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
prev parent reply other threads:[~2026-01-06 19:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-15 7:52 [meta-virtualization][PATCH] crun: fix CRUN_AS_RUNC checking Qi.Chen
2026-01-06 19:37 ` 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=aV1kcXX5tlH5AkdV@gmail.com \
--to=bruce.ashfield@gmail.com \
--cc=Qi.Chen@windriver.com \
--cc=meta-virtualization@lists.yoctoproject.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox