All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-virtualization][PATCH] crun: fix CRUN_AS_RUNC checking
@ 2025-12-15  7:52 Qi.Chen
  2026-01-06 19:37 ` Bruce Ashfield
  0 siblings, 1 reply; 2+ messages in thread
From: Qi.Chen @ 2025-12-15  7:52 UTC (permalink / raw)
  To: meta-virtualization

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.

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



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

end of thread, other threads:[~2026-01-06 19:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-15  7:52 [meta-virtualization][PATCH] crun: fix CRUN_AS_RUNC checking Qi.Chen
2026-01-06 19:37 ` 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.