diff options
author | Andreas Oberritter <obi@opendreambox.org> | 2013-03-18 13:42:07 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-03-18 13:26:59 +0000 |
commit | cf8e9d8942fdddaac21fca46137120da959c814c (patch) | |
tree | 3ccd4abdcc20df8488fbbe2d67c98c895b870d8b /meta/classes | |
parent | 2958de61fdf60b484b718b7def3d34ad3853725a (diff) | |
download | openembedded-core-cf8e9d8942fdddaac21fca46137120da959c814c.tar.gz openembedded-core-cf8e9d8942fdddaac21fca46137120da959c814c.tar.bz2 openembedded-core-cf8e9d8942fdddaac21fca46137120da959c814c.zip |
image_types.bbclass: only create links if the target exists
When creating images containing many partitions, rootfs.$type
may not be available.
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/image_types.bbclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass index 6bb113df4b..f7b8314784 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 } |