summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@opendreambox.org>2013-03-18 13:42:07 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-03-18 21:26:39 +0000
commita3409b909d20bd91a4e44d9c09dab2471ce4dac5 (patch)
tree878fdc8b6cc6c0fc7a50a0a0df1bfcfd63703385 /meta
parente5a2702653db082203455e3739d7838863c859ba (diff)
downloadast2050-yocto-poky-a3409b909d20bd91a4e44d9c09dab2471ce4dac5.zip
ast2050-yocto-poky-a3409b909d20bd91a4e44d9c09dab2471ce4dac5.tar.gz
image_types.bbclass: only create links if the target exists
When creating images containing many partitions, rootfs.$type may not be available. (From OE-Core rev: cf8e9d8942fdddaac21fca46137120da959c814c) Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/image_types.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass
index 6bb113d..f7b8314 100644
--- a/meta/classes/image_types.bbclass
+++ b/meta/classes/image_types.bbclass
@@ -95,7 +95,9 @@ runimagecmd () {
# And create the symlinks
if [ -n "${IMAGE_LINK_NAME}" ]; then
for type in ${subimages}; do
- ln -s ${IMAGE_NAME}.rootfs.$type ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.$type
+ if [ -e ${IMAGE_NAME}.rootfs.$type ]; then
+ ln -s ${IMAGE_NAME}.rootfs.$type ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.$type
+ fi
done
fi
}
OpenPOWER on IntegriCloud