summaryrefslogtreecommitdiffstats
path: root/meta-agl-ic-container/recipes-platform/images/agl-lxc-multi-partition-image.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta-agl-ic-container/recipes-platform/images/agl-lxc-multi-partition-image.inc')
-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
}