summaryrefslogtreecommitdiff
path: root/scripts/runqemu-internal
diff options
context:
space:
mode:
authorKang Kai <kai.kang@windriver.com>2012-06-20 16:55:51 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-06-25 16:32:14 +0100
commit5f2f951bdcb6f29e3ece39250715293d92db5f69 (patch)
tree3a96ea5f1254b7b6425784e0abd61f92ebd1ac52 /scripts/runqemu-internal
parente7b3040f0a0f5356949e6a51d9d9d1c8dcf1f3c9 (diff)
downloadopenembedded-core-5f2f951bdcb6f29e3ece39250715293d92db5f69.tar.gz
openembedded-core-5f2f951bdcb6f29e3ece39250715293d92db5f69.tar.bz2
openembedded-core-5f2f951bdcb6f29e3ece39250715293d92db5f69.zip
runqemu-internal: qemu fails to run on ext2 image
[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>
Diffstat (limited to 'scripts/runqemu-internal')
-rwxr-xr-xscripts/runqemu-internal2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal
index c8e31864ab..041464dd7c 100755
--- a/scripts/runqemu-internal
+++ b/scripts/runqemu-internal
@@ -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