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>
This commit is contained in:
Pavel Zhukov 2024-06-13 10:54:10 +02:00 committed by Bruce Ashfield
parent c29190ec1e
commit 48e559c4f4

View File

@ -38,3 +38,6 @@ VIRTUAL-RUNTIME_container_orchestration ??= "k3s"
VIRTUAL-RUNTIME_cri ??= "virtual-containerd" VIRTUAL-RUNTIME_cri ??= "virtual-containerd"
VIRTUAL-RUNTIME_cni ??= "cni" VIRTUAL-RUNTIME_cni ??= "cni"
CONTAINER_RO_REMOVE ?= " ${@bb.utils.contains('VIRTUAL-RUNTIME_container_engine', 'podman', 'shadow', '', d)}"
ROOTFS_RO_UNNEEDED:remove = "${CONTAINER_RO_REMOVE}"