From: Jonathan Liu <net147@gmail.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH 3/3] image-vmdk: Fix error recreating symbolic link
Date: Thu, 9 May 2013 13:24:04 +1000 [thread overview]
Message-ID: <1368069844-13706-3-git-send-email-net147@gmail.com> (raw)
In-Reply-To: <1368069844-13706-1-git-send-email-net147@gmail.com>
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes/image-vmdk.bbclass b/meta/classes/image-vmdk.bbclass
index 6f7df3f..c225bed 100644
--- a/meta/classes/image-vmdk.bbclass
+++ b/meta/classes/image-vmdk.bbclass
@@ -18,8 +18,8 @@ inherit boot-directdisk
create_vmdk_image () {
qemu-img convert -O vmdk ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.hdddirect ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.vmdk
+ rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.vmdk
ln -s ${IMAGE_NAME}.vmdk ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.vmdk
-
}
python do_vmdkimg() {
--
1.8.2.1
next prev parent reply other threads:[~2013-05-09 3:30 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-09 3:24 [PATCH v9 1/3] syslinux: Update to 4.06 Jonathan Liu
2013-05-09 3:24 ` [PATCH 2/3] boot-directdisk: Scope HDDDIR and HDDIMG variables to avoid conflicts Jonathan Liu
2013-06-07 23:31 ` Darren Hart
2013-06-09 12:11 ` Jonathan Liu
2013-06-10 16:36 ` Darren Hart
2013-05-09 3:24 ` Jonathan Liu [this message]
2013-05-09 8:33 ` [PATCH 3/3] image-vmdk: Fix error recreating symbolic link Robert Yang
2013-05-09 11:59 ` Jonathan Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1368069844-13706-3-git-send-email-net147@gmail.com \
--to=net147@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.