summaryrefslogtreecommitdiffstats
path: root/meta/classes
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:31 +0100
commit00aa0b315b9c66a98a6c0abe2519427a966557a0 (patch)
tree2940c09acd50dbd795c902414dfe88bedd2b8dc1 /meta/classes
parentc9e48bce1128881007fa3a27f2bd7bc8784e443e (diff)
downloadpoky-00aa0b315b9c66a98a6c0abe2519427a966557a0.tar.gz
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. (From OE-Core rev: bcfb5a783dc94fe38539a19f4f7de249ce2391c1) Signed-off-by: Jonathan Liu <net147@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-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
18 18
19create_vmdk_image () { 19create_vmdk_image () {
20 qemu-img convert -O vmdk ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.hdddirect ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.vmdk 20 qemu-img convert -O vmdk ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.hdddirect ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.vmdk
21 ln -s ${IMAGE_NAME}.vmdk ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.vmdk 21 ln -sf ${IMAGE_NAME}.vmdk ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.vmdk
22
23} 22}
24 23
25python do_vmdkimg() { 24python do_vmdkimg() {