]> code.ossystems Code Review - openembedded-core.git/commitdiff
runqemu-internal: qemu fails to run on ext2 image
authorKang Kai <kai.kang@windriver.com>
Wed, 20 Jun 2012 08:55:51 +0000 (16:55 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 25 Jun 2012 15:32:14 +0000 (16:32 +0100)
[Yocto 2579]

When set DISTRO to poky-tiny, only ext2 image is created. But
runqemu-internal doesn't set QEMUOPTIONS for ext2 image that make qemu
fail to boot.

Fix it for qemux86 arch since poky-tiny can only build for qemux86 now.

Signed-off-by: Kang Kai <kai.kang@windriver.com>
scripts/runqemu-internal

index c8e31864abfbdb31a3c3295e6c475a257f261da6..041464dd7ce5b64490ac56d9104a255cba6f6036 100755 (executable)
@@ -319,7 +319,7 @@ fi
 if [ "$MACHINE" = "qemux86" ]; then
     QEMU=qemu
     QEMU_UI_OPTIONS="$QEMU_UI_OPTIONS -vga vmware -enable-gl"
-    if [ "$FSTYPE" = "ext3" -o "$FSTYPE" = "btrfs" ]; then
+    if [ "$FSTYPE" = "ext2" -o "$FSTYPE" = "ext3" -o "$FSTYPE" = "btrfs" ]; then
         KERNCMDLINE="vga=0 root=/dev/hda rw mem=$QEMU_MEMORY $KERNEL_NETWORK_CMD"
         QEMUOPTIONS="$QEMU_NETWORK_CMD -hda $ROOTFS $QEMU_UI_OPTIONS"
     fi