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>
This commit is contained in:
parent
19d5755899
commit
6ca0be7f9c
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue