summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorJonathan Liu <net147@gmail.com>2013-05-09 22:15:48 +1000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-12 09:37:20 +0100
commitbcfb5a783dc94fe38539a19f4f7de249ce2391c1 (patch)
tree431dcd7dfd69dfc6e96f9de0de79c538f434086e /meta
parente4bc2b287bdeb0abf7c198564575f719a98a6591 (diff)
downloadopenembedded-core-bcfb5a783dc94fe38539a19f4f7de249ce2391c1.tar.gz
openembedded-core-bcfb5a783dc94fe38539a19f4f7de249ce2391c1.tar.bz2
openembedded-core-bcfb5a783dc94fe38539a19f4f7de249ce2391c1.zip
image-vmdk: Fix error recreating symbolic link
If the vmdk image symbolic link already exists from a previous build, overwrite it instead of returning an error. Signed-off-by: Jonathan Liu <net147@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/image-vmdk.bbclass3
1 files changed, 1 insertions, 2 deletions
diff --git a/meta/classes/image-vmdk.bbclass b/meta/classes/image-vmdk.bbclass
index 089d019cf1..22dd6edcb2 100644
--- a/meta/classes/image-vmdk.bbclass
+++ b/meta/classes/image-vmdk.bbclass
@@ -18,8 +18,7 @@ inherit boot-directdisk
create_vmdk_image () {
qemu-img convert -O vmdk ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.hdddirect ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.vmdk
- ln -s ${IMAGE_NAME}.vmdk ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.vmdk
-
+ ln -sf ${IMAGE_NAME}.vmdk ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.vmdk
}
python do_vmdkimg() {