containers: make trimmed runtimes conflict with standard ones

Mark the trimmed runtime variants as conflicting with the standard
packages so images cannot include both Podman or LXC flavors at the
same time.

This avoids ambiguous runtime layouts and configuration ownership when a
minimal container-manager image uses the trimmed packages while other
images may select the standard runtimes.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
This commit is contained in:
Isaac Hermida 2026-03-31 14:12:06 +02:00
parent 5b45c1e64c
commit 25dfe3d20a
2 changed files with 4 additions and 0 deletions

View File

@ -19,6 +19,8 @@ RDEPENDS:${PN}:remove = " \
PACKAGECONFIG:remove = "templates systemd selinux"
RCONFLICTS:${PN}:append = " lxc"
SYSTEMD_PACKAGES = ""
SYSTEMD_SERVICE:${PN} = ""
SYSTEMD_SERVICE:${PN}-networking = ""

View File

@ -23,6 +23,8 @@ RDEPENDS:${PN}:remove = " \
PACKAGECONFIG:remove = "rootless docker"
RCONFLICTS:${PN}:append = " podman"
do_install:append() {
rm -f ${D}${bindir}/docker
rm -f ${D}${bindir}/docker-runc