There's already a mechanism that was being put into place for this, it is
part of some container image
and package group work that is pending (it didn't make this release), so
for now, you'll have to carry
this locally until the rework is refreshed.

That patch creates namesspaces for the cni, cri, etc, and I don't want any
other variables introduced
for this, since once they land in the tree, they are an interface to the
recipes that I don't really change
often.

Bruce

On Mon, Oct 17, 2022 at 7:12 AM Vasileios Anagnostopoulos <
[email protected]> wrote:

> Signed-off-by: Vasileios Anagnostopoulos <
> [email protected]>
> ---
>  recipes-containers/podman/podman_git.bb | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/recipes-containers/podman/podman_git.bb
> b/recipes-containers/podman/podman_git.bb
> index e3bc908..dea14ba 100644
> --- a/recipes-containers/podman/podman_git.bb
> +++ b/recipes-containers/podman/podman_git.bb
> @@ -65,6 +65,9 @@ EXTRA_OEMAKE = " \
>  # packageconfig, the podman package will rconfict with docker.
>  PACKAGECONFIG ?= "docker"
>
> +# Supported are: virtual-runc, crun
> +DEFAULT_CONTAINER_RUNTIME ??= "virtual-runc"
> +
>  do_compile() {
>         cd ${S}/src
>         rm -rf .gopath
> @@ -136,7 +139,7 @@ SYSTEMD_SERVICE:${PN} = "podman.service podman.socket"
>  VIRTUAL-RUNTIME_base-utils-nsenter ?= "util-linux-nsenter"
>
>  RDEPENDS:${PN} += "\
> -       conmon virtual-runc iptables cni skopeo
> ${VIRTUAL-RUNTIME_base-utils-nsenter} \
> +    conmon ${DEFAULT_CONTAINER_RUNTIME} iptables cni skopeo
> ${VIRTUAL-RUNTIME_base-utils-nsenter} \
>         ${@bb.utils.contains('PACKAGECONFIG', 'rootless', 'fuse-overlayfs
> slirp4netns', '', d)} \
>  "
>  RRECOMMENDS:${PN} += "slirp4netns kernel-module-xt-masquerade
> kernel-module-xt-comment"
> --
> 2.34.1
>
>
> 
>
>

-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end
- "Use the force Harry" - Gandalf, Star Trek II
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7661): 
https://lists.yoctoproject.org/g/meta-virtualization/message/7661
Mute This Topic: https://lists.yoctoproject.org/mt/94381602/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to