Fix multiple container installation failing 90/26890/1
authorNaoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
Sat, 9 Oct 2021 15:35:39 +0000 (00:35 +0900)
committerNaoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
Mon, 22 Nov 2021 06:32:01 +0000 (15:32 +0900)
When new container image add into lxc-host-image-demo, existing
image will not build.

In case of:
CONTAINER_IMAGES ?= "agl-container-cluster:guest-image-cluster-demo \
                     agl-container-ivi:guest-image-ivi-demo \
"

agl-container-ivi:guest-image-ivi-demo will be building,
but agl-container-cluster:guest-image-cluster-demo will not be building.

This patch fix issue for the build dependency creation to guests.

Bug-AGL: SPEC-4109

Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
Change-Id: I2ed6f91f0d4db90f337a6148d6630f85c1b5c97d

meta-agl-lxc/recipes-platform/images/lxc-host-image-minimal.bb

index f9c1744..1790244 100644 (file)
@@ -22,7 +22,7 @@ python __anonymous() {
     for c in (d.getVar('CONTAINER_IMAGES') or "").split():
         (mc, image) = c.split(':')
         dependency = 'mc::' + mc + ':' + image + ':do_image_complete'
-        d.setVarFlag('do_rootfs', 'mcdepends', dependency)
+        d.appendVarFlag('do_rootfs', 'mcdepends', ' ' + dependency)
 
         # Assume there is a X-lxc-config package for guest-image-X
         config = image