diff options
author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2023-03-02 16:14:18 -0500 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2023-03-08 17:08:02 -0500 |
commit | fd0958ed9e38fb5215218ac772230abc2f65c4c2 (patch) | |
tree | 73cedd817a8b2563c5f25254ee7c2272b62a4763 | |
parent | b3346bfb2652ec9665e9d1ef9e9e63e218cd2bfd (diff) | |
download | meta-virtualization-fd0958ed9e38fb5215218ac772230abc2f65c4c2.tar.gz |
containers: use VIRTUAL-RUNTIME variable to allow container runtime flexibility
Rather than using virtual-runc (which choses between the old docker and
opencontainer variants), use the newly added
VIRTUAL-RUNTIME_container-runtime variable, which allows switching
betwen runc and crun.
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r-- | recipes-containers/containerd/containerd-opencontainers_git.bb | 2 | ||||
-rw-r--r-- | recipes-containers/cri-o/cri-o_git.bb | 2 | ||||
-rw-r--r-- | recipes-containers/docker/docker.inc | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/recipes-containers/containerd/containerd-opencontainers_git.bb b/recipes-containers/containerd/containerd-opencontainers_git.bb index 83177094..2071fdc6 100644 --- a/recipes-containers/containerd/containerd-opencontainers_git.bb +++ b/recipes-containers/containerd/containerd-opencontainers_git.bb | |||
@@ -98,6 +98,6 @@ INSANE_SKIP:${PN} += "ldflags already-stripped" | |||
98 | 98 | ||
99 | COMPATIBLE_HOST = "^(?!(qemu)?mips).*" | 99 | COMPATIBLE_HOST = "^(?!(qemu)?mips).*" |
100 | 100 | ||
101 | RDEPENDS:${BPN} += " virtual-runc" | 101 | RDEPENDS:${BPN} += " ${VIRTUAL-RUNTIME_container_runtime}" |
102 | 102 | ||
103 | CVE_PRODUCT = "containerd" | 103 | CVE_PRODUCT = "containerd" |
diff --git a/recipes-containers/cri-o/cri-o_git.bb b/recipes-containers/cri-o/cri-o_git.bb index 2ae3303c..0121b2f7 100644 --- a/recipes-containers/cri-o/cri-o_git.bb +++ b/recipes-containers/cri-o/cri-o_git.bb | |||
@@ -50,7 +50,7 @@ PACKAGECONFIG[selinux] = ",,libselinux" | |||
50 | 50 | ||
51 | PACKAGES =+ "${PN}-config" | 51 | PACKAGES =+ "${PN}-config" |
52 | 52 | ||
53 | RDEPENDS:${PN} += " virtual-containerd virtual-runc" | 53 | RDEPENDS:${PN} += " virtual-containerd ${VIRTUAL-RUNTIME_container_runtime}" |
54 | RDEPENDS:${PN} += " e2fsprogs-mke2fs conmon util-linux iptables conntrack-tools" | 54 | RDEPENDS:${PN} += " e2fsprogs-mke2fs conmon util-linux iptables conntrack-tools" |
55 | 55 | ||
56 | inherit systemd | 56 | inherit systemd |
diff --git a/recipes-containers/docker/docker.inc b/recipes-containers/docker/docker.inc index 2487456e..4a4bc4f6 100644 --- a/recipes-containers/docker/docker.inc +++ b/recipes-containers/docker/docker.inc | |||
@@ -27,7 +27,7 @@ RDEPENDS:${PN} = "util-linux util-linux-unshare iptables \ | |||
27 | bridge-utils \ | 27 | bridge-utils \ |
28 | ca-certificates \ | 28 | ca-certificates \ |
29 | " | 29 | " |
30 | RDEPENDS:${PN} += "virtual-containerd virtual-runc" | 30 | RDEPENDS:${PN} += "virtual-containerd ${VIRTUAL-RUNTIME_container_runtime}" |
31 | 31 | ||
32 | RRECOMMENDS:${PN} = "kernel-module-dm-thin-pool kernel-module-nf-nat kernel-module-nf-conntrack-netlink kernel-module-xt-addrtype kernel-module-xt-masquerade" | 32 | RRECOMMENDS:${PN} = "kernel-module-dm-thin-pool kernel-module-nf-nat kernel-module-nf-conntrack-netlink kernel-module-xt-addrtype kernel-module-xt-masquerade" |
33 | 33 | ||