summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCristian Iorga <cristian.iorga@intel.com>2015-05-06 18:21:47 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-05-07 13:40:35 +0100
commit6ca0be7f9cae17a946bd043786473ef664b9f95b (patch)
treea07008387f9e935d2b99be4f4691bd18e9d7e801
parent19d57558994e66e2463e03d12e9e90d99988ec8d (diff)
downloadpoky-6ca0be7f9cae17a946bd043786473ef664b9f95b.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. (From OE-Core rev: 1da6bd7fce9c193c7940a7294baa370fd8b66e76) Signed-off-by: Cristian Iorga <cristian.iorga@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xscripts/runqemu-internal4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal
index 2db55660ce..bc2a3557a5 100755
--- a/scripts/runqemu-internal
+++ b/scripts/runqemu-internal
@@ -123,7 +123,7 @@ if [ "$SLIRP_ENABLED" = "yes" ]; then
123 if [ "$KVM_ACTIVE" = "yes" ]; then 123 if [ "$KVM_ACTIVE" = "yes" ]; then
124 QEMU_NETWORK_CMD="" 124 QEMU_NETWORK_CMD=""
125 DROOT="/dev/vda" 125 DROOT="/dev/vda"
126 ROOTFS_OPTIONS="-drive file=$ROOTFS,if=virtio" 126 ROOTFS_OPTIONS="-drive file=$ROOTFS,if=virtio,format=raw"
127 else 127 else
128 QEMU_NETWORK_CMD="" 128 QEMU_NETWORK_CMD=""
129 DROOT="/dev/hda" 129 DROOT="/dev/hda"
@@ -261,7 +261,7 @@ else
261 if [ "$KVM_ACTIVE" = "yes" ]; then 261 if [ "$KVM_ACTIVE" = "yes" ]; then
262 QEMU_NETWORK_CMD="-net nic,model=virtio $QEMU_TAP_CMD,vhost=on" 262 QEMU_NETWORK_CMD="-net nic,model=virtio $QEMU_TAP_CMD,vhost=on"
263 DROOT="/dev/vda" 263 DROOT="/dev/vda"
264 ROOTFS_OPTIONS="-drive file=$ROOTFS,if=virtio" 264 ROOTFS_OPTIONS="-drive file=$ROOTFS,if=virtio,format=raw"
265 else 265 else
266 QEMU_NETWORK_CMD="-net nic,vlan=0 $QEMU_TAP_CMD" 266 QEMU_NETWORK_CMD="-net nic,vlan=0 $QEMU_TAP_CMD"
267 DROOT="/dev/hda" 267 DROOT="/dev/hda"