From: Jonathan Liu <net147@gmail.com>
To: Robert Yang <liezhi.yang@windriver.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH 3/3] image-vmdk: Fix error recreating symbolic link
Date: Thu, 09 May 2013 21:59:44 +1000 [thread overview]
Message-ID: <518B8FB0.3000309@gmail.com> (raw)
In-Reply-To: <518B5F4F.8090707@windriver.com>
On 9/05/2013 6:33 PM, Robert Yang wrote:
>
>
> On 05/09/2013 11:24 AM, Jonathan Liu wrote:
>> 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
>
> How about "ln -sf", the '-f' will remove existing destination files.
>
> // Robert
Done.
>
>> -
>> }
>>
>> python do_vmdkimg() {
>>
Regards,
Jonathan
prev parent reply other threads:[~2013-05-09 12:22 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 ` [PATCH 3/3] image-vmdk: Fix error recreating symbolic link Jonathan Liu
2013-05-09 8:33 ` Robert Yang
2013-05-09 11:59 ` Jonathan Liu [this message]
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=518B8FB0.3000309@gmail.com \
--to=net147@gmail.com \
--cc=liezhi.yang@windriver.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.