diff options
author | Cristian Iorga <cristian.iorga@intel.com> | 2015-05-06 18:21:47 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-05-07 13:14:38 +0100 |
commit | 1da6bd7fce9c193c7940a7294baa370fd8b66e76 (patch) | |
tree | 4c2b8aa8da1f5cdbb3a60a726a824e13f76728a7 /scripts | |
parent | b88e3808533a7280c85e570a1359efcba8dcc4bd (diff) | |
download | openembedded-core-contrib-1da6bd7fce9c193c7940a7294baa370fd8b66e76.tar.gz |
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@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/runqemu-internal | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal index 2db55660ceb..bc2a3557a59 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" |