diff options
| author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2026-01-23 15:22:14 -0500 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2026-01-23 22:29:11 -0500 |
| commit | fb2d1d8a47909b8e7e49df65ae30263ca236236f (patch) | |
| tree | 9bf70f7be27d749e8c2aa497d6ec4afe28dc0791 | |
| parent | d7b6ee0369cd7bd891a443a41306d77ce5899ad9 (diff) | |
| download | meta-virtualization-fb2d1d8a47909b8e7e49df65ae30263ca236236f.tar.gz | |
crun: add RCONFLICTS to prevent runc package conflict
When CRUN_AS_RUNC is enabled (default), crun creates a /usr/bin/runc
symlink that conflicts with the runc package's /usr/bin/runc binary.
Add RCONFLICTS to declare this conflict so package managers prevent
both from being installed simultaneously.
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
| -rw-r--r-- | recipes-containers/crun/crun_git.bb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/recipes-containers/crun/crun_git.bb b/recipes-containers/crun/crun_git.bb index 7653bf9e..46c14b79 100644 --- a/recipes-containers/crun/crun_git.bb +++ b/recipes-containers/crun/crun_git.bb | |||
| @@ -57,6 +57,9 @@ do_install() { | |||
| 57 | fi | 57 | fi |
| 58 | } | 58 | } |
| 59 | 59 | ||
| 60 | # When crun provides /usr/bin/runc symlink, it conflicts with the runc package | ||
| 61 | RCONFLICTS:${PN} = "${@'runc' if d.getVar('CRUN_AS_RUNC') else ''}" | ||
| 62 | |||
| 60 | REQUIRED_DISTRO_FEATURES:class-native ?= "" | 63 | REQUIRED_DISTRO_FEATURES:class-native ?= "" |
| 61 | DEPENDS:class-native += "yajl libcap go-md2man m4 libseccomp" | 64 | DEPENDS:class-native += "yajl libcap go-md2man m4 libseccomp" |
| 62 | BBCLASSEXTEND = "native" | 65 | BBCLASSEXTEND = "native" |
