summaryrefslogtreecommitdiffstats
path: root/scripts
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-07 13:25:31 +0000
commitea1c239e4302c29b0b67b069f6ae75bb3c2e2ade (patch)
treed3d065870961cd9187a1ef50cffbf470c99eb580 /scripts
parente2d49ce3c4fb7186de6589231193a18102b68447 (diff)
downloadpoky-ea1c239e4302c29b0b67b069f6ae75bb3c2e2ade.tar.gz
runqemu: correct rootfs setup to boot an ide hddimg
vm_drive variable is malformed when the drive type is an ide device. (From OE-Core rev: 88d7b17871fe8340ab7fd5c901d3a535ae098c3e) Signed-off-by: Thomas Perrot <thomas.perrot@tupi.fr> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-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):
1018 % (self.rootfs, rootfs_format) 1018 % (self.rootfs, rootfs_format)
1019 elif drive_type.startswith("/dev/hd"): 1019 elif drive_type.startswith("/dev/hd"):
1020 logger.info('Using ide drive') 1020 logger.info('Using ide drive')
1021 vm_drive = "%s,format=%s" % (self.rootfs, rootfs_format) 1021 vm_drive = "-drive file=%s,format=%s" % (self.rootfs, rootfs_format)
1022 else: 1022 else:
1023 # virtio might have been selected explicitly (just use it), or 1023 # virtio might have been selected explicitly (just use it), or
1024 # is used as fallback (then warn about that). 1024 # is used as fallback (then warn about that).