summaryrefslogtreecommitdiffstats
path: root/meta-agl-ic-container/recipes-platform
diff options
context:
space:
mode:
authorNaoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>2023-05-07 21:44:03 +0900
committerNaoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>2023-05-09 08:13:10 +0900
commitec8b840bf22a1a4914553ed46469ee5915246690 (patch)
tree8d8ea96d416e174676e306b2ffcde7cf30bc53bb /meta-agl-ic-container/recipes-platform
parent211ddbdf4143da9509c8c747485bc87b2ab49ba9 (diff)
Improve error handling in multi partition integration
Existing multi partition integration out the error of out of tree image in wic creation process. That error message is difficult understanding. This patch add out of tree image check at more earlier timing. Bug-AGL: SPEC-4777 Change-Id: If1a0ba8d78b5ff1e7b19ef6a10a8f9fc98312b8a Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
Diffstat (limited to 'meta-agl-ic-container/recipes-platform')
-rw-r--r--meta-agl-ic-container/recipes-platform/images/agl-lxc-multi-partition-image.inc12
1 files changed, 11 insertions, 1 deletions
diff --git a/meta-agl-ic-container/recipes-platform/images/agl-lxc-multi-partition-image.inc b/meta-agl-ic-container/recipes-platform/images/agl-lxc-multi-partition-image.inc
index 7d6fcf12..9556c1e9 100644
--- a/meta-agl-ic-container/recipes-platform/images/agl-lxc-multi-partition-image.inc
+++ b/meta-agl-ic-container/recipes-platform/images/agl-lxc-multi-partition-image.inc
@@ -39,12 +39,22 @@ install_container_images() {
done
if ${@bb.utils.contains('OUT_OF_TREE_CONTAINER_IMAGE_DEPLOY_DIR', 'non', 'false', 'true', d)}; then
+ er=0
for image in ${OUT_OF_TREE_CONTAINER_IMAGES}; do
rm -f "${DEPLOY_DIR_IMAGE}/${image}.ext4"
src="${OUT_OF_TREE_CONTAINER_IMAGE_DEPLOY_DIR}/images/${MACHINE}/${image}-${MACHINE}${MACHINE_SUFFIX}.ext4"
- bbnote "Installing ${src}"
+ if [ ! -e ${src} ]; then
+ bberror "File not found at ${src}."
+ er=1
+ else
+ bbnote "Installing ${src}"
+ fi
ln -s ${src} "${DEPLOY_DIR_IMAGE}/${image}.ext4"
done
+
+ if [ $er -eq 1 ]; then
+ bbfatal "AGL Demo IVI images install error. Please check OUT_OF_TREE_CONTAINER_IMAGE_DEPLOY_DIR setting and IVI side build status."
+ fi
fi
}