[oe-commits] Cristian Iorga : runqemu-internal: correctly set format for root FS as raw
git at git.openembedded.org
git at git.openembedded.org
Wed May 6 21:26:13 UTC 2015
Module: openembedded-core.git
Branch: master-next
Commit: 5ce2432146e5ee4710542272a266e506bcabba5d
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=5ce2432146e5ee4710542272a266e506bcabba5d
Author: Cristian Iorga <cristian.iorga at intel.com>
Date: Wed May 6 18:21:47 2015 +0300
runqemu-internal: correctly set format for root FS as raw
qemu guesses via probing the format of root FS, but
gives a warning and restricts write operations on block 0.
So fix it by setting correctly the format as raw.
Signed-off-by: Cristian Iorga <cristian.iorga at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
scripts/runqemu-internal | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal
index 2db5566..bc2a355 100755
--- a/scripts/runqemu-internal
+++ b/scripts/runqemu-internal
@@ -123,7 +123,7 @@ if [ "$SLIRP_ENABLED" = "yes" ]; then
if [ "$KVM_ACTIVE" = "yes" ]; then
QEMU_NETWORK_CMD=""
DROOT="/dev/vda"
- ROOTFS_OPTIONS="-drive file=$ROOTFS,if=virtio"
+ ROOTFS_OPTIONS="-drive file=$ROOTFS,if=virtio,format=raw"
else
QEMU_NETWORK_CMD=""
DROOT="/dev/hda"
@@ -261,7 +261,7 @@ else
if [ "$KVM_ACTIVE" = "yes" ]; then
QEMU_NETWORK_CMD="-net nic,model=virtio $QEMU_TAP_CMD,vhost=on"
DROOT="/dev/vda"
- ROOTFS_OPTIONS="-drive file=$ROOTFS,if=virtio"
+ ROOTFS_OPTIONS="-drive file=$ROOTFS,if=virtio,format=raw"
else
QEMU_NETWORK_CMD="-net nic,vlan=0 $QEMU_TAP_CMD"
DROOT="/dev/hda"
More information about the Openembedded-commits
mailing list