diff options
| -rw-r--r-- | recipes-containers/podman/podman_git.bb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/recipes-containers/podman/podman_git.bb b/recipes-containers/podman/podman_git.bb index 45ddec1a..886d6e90 100644 --- a/recipes-containers/podman/podman_git.bb +++ b/recipes-containers/podman/podman_git.bb | |||
| @@ -36,7 +36,13 @@ PACKAGES =+ "${PN}-contrib" | |||
| 36 | 36 | ||
| 37 | PODMAN_PKG = "github.com/containers/podman" | 37 | PODMAN_PKG = "github.com/containers/podman" |
| 38 | 38 | ||
| 39 | BUILDTAGS_EXTRA ?= "${@bb.utils.contains('VIRTUAL-RUNTIME_container_networking','cni','cni','',d)}" | 39 | # Include the cni build tag unless the distro explicitly selects netavark-only. |
| 40 | # The runtime backend is selected via containers.conf (network_backend), | ||
| 41 | # but podman must be compiled with the cni tag to support it at all. | ||
| 42 | # Previously this was gated on VIRTUAL-RUNTIME_container_networking == "cni", | ||
| 43 | # which excluded cni in vruntime builds where that variable is intentionally | ||
| 44 | # blank (vpdmn-rootfs-image installs cni packages directly in IMAGE_INSTALL). | ||
| 45 | BUILDTAGS_EXTRA ?= "${@'' if d.getVar('VIRTUAL-RUNTIME_container_networking') == 'netavark' else 'cni'}" | ||
| 40 | BUILDTAGS ?= "seccomp varlink \ | 46 | BUILDTAGS ?= "seccomp varlink \ |
| 41 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} \ | 47 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} \ |
| 42 | exclude_graphdriver_btrfs exclude_graphdriver_devicemapper ${BUILDTAGS_EXTRA}" | 48 | exclude_graphdriver_btrfs exclude_graphdriver_devicemapper ${BUILDTAGS_EXTRA}" |
