Patchwork [2/6] image-vmdk: Add symbolic link for a short named vmdk image

login
register
mail settings
Submitter Saul Wold
Date March 27, 2012, 5:42 a.m.
Message ID <1c8002704bc7dbb1dc70549366d8a2e4773e2d0d.1332826876.git.sgw@linux.intel.com>
Download mbox | patch
Permalink /patch/24621/
State New
Headers show

Comments

Saul Wold - March 27, 2012, 5:42 a.m.
This adds a link from the date stamped vmdk image to a shortened
name file.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
 meta/classes/image-vmdk.bbclass |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Patch

diff --git a/meta/classes/image-vmdk.bbclass b/meta/classes/image-vmdk.bbclass
index 3e63006..9d596cd 100644
--- a/meta/classes/image-vmdk.bbclass
+++ b/meta/classes/image-vmdk.bbclass
@@ -10,6 +10,8 @@  inherit image-live
 
 create_vmdk_image () {
 	qemu-img convert -O vmdk ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.hddimg ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.vmdk
+	ln -s ${IMAGE_NAME}.vmdk ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.vmdk
+
 }
 
 python do_vmdkimg() {