summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@gmail.com>2026-03-12 17:29:17 +0000
committerBruce Ashfield <bruce.ashfield@gmail.com>2026-03-12 17:29:17 +0000
commite5a041720071917e561ce1c38f6b5279289eee21 (patch)
tree673c5a872a3490cb9964cccb70e5f9bdc50d4c71
parentc6b27a6b5d475b6b53dcff570f9ef84e95a6911f (diff)
downloadmeta-virtualization-e5a041720071917e561ce1c38f6b5279289eee21.tar.gz
container-registry: make IMAGE_FEATURES local to image recipes
Remove the global IMAGE_FEATURES[validitems] registration entirely. Setting it in layer.conf or a globally-inherited bbclass changes the varflag value, which gets pulled into the signature of every recipe that depends on IMAGE_FEATURES — causing yocto-check-layer signature change failures. Image recipes that use the container-registry feature already set IMAGE_FEATURES[validitems] locally (e.g. container-image-host.bb). Users who want the feature in their own images add the one-liner: IMAGE_FEATURES[validitems] += "container-registry" Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r--classes/meta-virt-container-cfg.bbclass3
1 files changed, 0 insertions, 3 deletions
diff --git a/classes/meta-virt-container-cfg.bbclass b/classes/meta-virt-container-cfg.bbclass
index f797a6aa..9a4b144e 100644
--- a/classes/meta-virt-container-cfg.bbclass
+++ b/classes/meta-virt-container-cfg.bbclass
@@ -8,6 +8,3 @@
8# match the other configs of the layer and in case the above statement isn't 8# match the other configs of the layer and in case the above statement isn't
9# always true in the future. 9# always true in the future.
10include ${@bb.utils.contains('DISTRO_FEATURES', 'virtualization', '${META_VIRT_CONTAINER_CONFIG_PATH}', '${META_VIRT_CONTAINER_CONFIG_PATH}', d)} 10include ${@bb.utils.contains('DISTRO_FEATURES', 'virtualization', '${META_VIRT_CONTAINER_CONFIG_PATH}', '${META_VIRT_CONTAINER_CONFIG_PATH}', d)}
11
12# Register custom IMAGE_FEATURES only when container features are enabled
13IMAGE_FEATURES[validitems] += "${@bb.utils.contains_any('DISTRO_FEATURES', 'vcontainer virtualization', 'container-registry', '', d)}"