summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu
diff options
context:
space:
mode:
authorThomas Perrot <thomas.perrot@tupi.fr>2017-11-05 23:43:29 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-11-05 22:52:36 +0000
commit88d7b17871fe8340ab7fd5c901d3a535ae098c3e (patch)
treee2af41bc31af700bcb6acc37c1c8463befc3842c /scripts/runqemu
parent88770be201678bf1906e27d72e840de2cd4c43f0 (diff)
downloadopenembedded-core-88d7b17871fe8340ab7fd5c901d3a535ae098c3e.tar.gz
runqemu: correct rootfs setup to boot an ide hddimg
vm_drive variable is malformed when the drive type is an ide device. Signed-off-by: Thomas Perrot <thomas.perrot@tupi.fr> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-xscripts/runqemu2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index 9dc6a05c57..fe4459dfb8 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -1018,7 +1018,7 @@ class BaseConfig(object):
% (self.rootfs, rootfs_format)
elif drive_type.startswith("/dev/hd"):
logger.info('Using ide drive')
- vm_drive = "%s,format=%s" % (self.rootfs, rootfs_format)
+ vm_drive = "-drive file=%s,format=%s" % (self.rootfs, rootfs_format)
else:
# virtio might have been selected explicitly (just use it), or
# is used as fallback (then warn about that).