* [PATCH 3/3 v2] image-vmdk: Fix error recreating symbolic link
@ 2013-05-09 12:15 Jonathan Liu
0 siblings, 0 replies; only message in thread
From: Jonathan Liu @ 2013-05-09 12:15 UTC (permalink / raw)
To: openembedded-core
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>
---
meta/classes/image-vmdk.bbclass | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/meta/classes/image-vmdk.bbclass b/meta/classes/image-vmdk.bbclass
index 6f7df3f..70234e2 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() {
--
1.8.2.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-05-09 12:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-09 12:15 [PATCH 3/3 v2] image-vmdk: Fix error recreating symbolic link Jonathan Liu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox