mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 12:50:22 +02:00
podman: Use slirp4netns instead of pasta
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 Signed-off-by: Marcus Flyckt <mafl@kvaser.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
parent
6ab94f2c68
commit
e8214becb9
|
@ -118,6 +118,11 @@ do_install() {
|
|||
if ${@bb.utils.contains('PACKAGECONFIG', 'rootless', 'true', 'false', d)}; then
|
||||
install -d "${D}${sysconfdir}/sysctl.d"
|
||||
install -m 0644 "${UNPACKDIR}/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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user