All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bruce Ashfield <bruce.ashfield@gmail.com>
To: marcus.flyckt@gmail.com
Cc: meta-virtualization@lists.yoctoproject.org,
	Marcus Flyckt <mafl@kvaser.com>
Subject: Re: [meta-virtualization][PATCH] podman: Use slirp4netns instead of pasta
Date: Fri, 31 May 2024 15:04:53 +0000	[thread overview]
Message-ID: <ZlnnFdbNsPMvIc37@gmail.com> (raw)
In-Reply-To: <20240531091316.339912-1-mafl@kvaser.com>



In message: [meta-virtualization][PATCH] podman: Use slirp4netns instead of pasta
on 31/05/2024 Marcus Flyckt via lists.yoctoproject.org wrote:

> podman uses pasta as the default rootless network command since 5.0.0,
> but only slirp4netns is available when building for Yocto.
> 
> This commit adds a containers.conf file setting slirp4netns as default
> rootless command if 'rootless' is set in PACKAGECONFIG

That is also my preferred default.

That being said, I was doing a recipe for pasta, if anyone
knows of an existing recipe that I'm not aware of, let me
know!

Bruce

> 
> Signed-off-by: Marcus Flyckt <mafl@kvaser.com>
> ---
>  recipes-containers/podman/podman_git.bb | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/recipes-containers/podman/podman_git.bb b/recipes-containers/podman/podman_git.bb
> index 32de3f0c..b8e90406 100644
> --- a/recipes-containers/podman/podman_git.bb
> +++ b/recipes-containers/podman/podman_git.bb
> @@ -117,6 +117,11 @@ do_install() {
>  	if ${@bb.utils.contains('PACKAGECONFIG', 'rootless', 'true', 'false', d)}; then
>  		install -d "${D}${sysconfdir}/sysctl.d"
>  		install -m 0644 "${WORKDIR}/50-podman-rootless.conf" "${D}${sysconfdir}/sysctl.d"
> +		install -d "${D}${sysconfdir}/containers"
> +		cat <<-EOF >> "${D}${sysconfdir}/containers/containers.conf"
> +		[NETWORK]
> +		default_rootless_network_cmd="slirp4netns"
> +		EOF
>  	fi
>  }
>  
> -- 
> 2.43.0
> 

> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#8789): https://lists.yoctoproject.org/g/meta-virtualization/message/8789
> Mute This Topic: https://lists.yoctoproject.org/mt/106404631/1050810
> Group Owner: meta-virtualization+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [bruce.ashfield@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
> 



      reply	other threads:[~2024-05-31 15:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-31  9:13 [meta-virtualization][PATCH] podman: Use slirp4netns instead of pasta Marcus Flyckt
2024-05-31 15:04 ` 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=ZlnnFdbNsPMvIc37@gmail.com \
    --to=bruce.ashfield@gmail.com \
    --cc=mafl@kvaser.com \
    --cc=marcus.flyckt@gmail.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 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.