summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Zhukov <pavel@zhukoff.net>2024-06-13 10:54:10 +0200
committerBruce Ashfield <bruce.ashfield@gmail.com>2024-10-03 01:28:52 +0000
commit48e559c4f46cc612f2a81d49c612ed60971d352c (patch)
tree45145774e836760818e85f9b45ef620e1459e52a
parentc29190ec1efb8758fe49226cce4c87b1032d126e (diff)
downloadmeta-virtualization-48e559c4f46cc612f2a81d49c612ed60971d352c.tar.gz
meta-virt-container.inc: Install shadow in read-only rootfs
Podman requires /etc/sub[g]uid for rootless mode but the file is being deleted if shadow is in ROOTFS_RO_UNNEEDED (even if different package like the podman itself provides it) and rpm backend is used. Signed-off-by: Pavel Zhukov <pavel@zhukoff.net> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r--conf/distro/include/meta-virt-container.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/conf/distro/include/meta-virt-container.inc b/conf/distro/include/meta-virt-container.inc
index c3ac8394..6382ac37 100644
--- a/conf/distro/include/meta-virt-container.inc
+++ b/conf/distro/include/meta-virt-container.inc
@@ -38,3 +38,6 @@ VIRTUAL-RUNTIME_container_orchestration ??= "k3s"
38 38
39VIRTUAL-RUNTIME_cri ??= "virtual-containerd" 39VIRTUAL-RUNTIME_cri ??= "virtual-containerd"
40VIRTUAL-RUNTIME_cni ??= "cni" 40VIRTUAL-RUNTIME_cni ??= "cni"
41
42CONTAINER_RO_REMOVE ?= " ${@bb.utils.contains('VIRTUAL-RUNTIME_container_engine', 'podman', 'shadow', '', d)}"
43ROOTFS_RO_UNNEEDED:remove = "${CONTAINER_RO_REMOVE}"