[oe-commits] [openembedded-core] 21/69: runqemu: add support for qcow2 and vdi

git at git.openembedded.org git at git.openembedded.org
Wed Mar 23 14:26:09 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 0f8306c77b4ebed1ff127b0786b7109abf0d57cd
Author: Robert Yang <liezhi.yang at windriver.com>
AuthorDate: Wed Mar 2 00:45:04 2016 -0800

    runqemu: add support for qcow2 and vdi
    
    [YOCTO #9168]
    
    Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
---
 scripts/runqemu | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/scripts/runqemu b/scripts/runqemu
index 058ee29..d95711b 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -40,8 +40,7 @@ Examples:
   $MYNAME qemux86-64 core-image-sato ext4
   $MYNAME qemux86-64 wic-image-minimal wic
   $MYNAME path/to/bzImage-qemux86.bin path/to/nfsrootdir/ serial
-  $MYNAME qemux86 ramfs
-  $MYNAME qemux86 iso
+  $MYNAME qemux86 iso/hddimg/vmdk/qcow2/vdi/ramfs...
   $MYNAME qemux86 qemuparams="-m 256"
   $MYNAME qemux86 bootparams="psplash=false"
   $MYNAME path/to/<image>-<machine>.vmdk
@@ -97,7 +96,7 @@ process_filename() {
 		    error "conflicting FSTYPE types [$FSTYPE] and [$EXT]"
 		fi
 		;;
-	/hddimg/|/hdddirect/|/vmdk/|/wic/)
+	/hddimg/|/hdddirect/|/vmdk/|/wic/|/qcow2/|/vdi/)
 		FSTYPE=$EXT
 		VM=$filename
 		ROOTFS=$filename
@@ -129,7 +128,7 @@ while true; do
         "ext"[234] | "jffs2" | "nfs" | "btrfs")
             check_fstype_conflicts $arg
             ;;
-        "hddimg" | "hdddirect" | "wic" | "vmdk")
+        "hddimg" | "hdddirect" | "wic" | "vmdk" | "qcow2" | "vdi")
             check_fstype_conflicts $arg
             IS_VM="true"
             ;;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list