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-12-04 17:23:55 +0000
commit8754f4779c33511288b418031aa21cd464affe1e (patch)
tree3db5997867c2d0fab6e4d34ae0e7cd4416ae6833 /scripts
parente0bfc2247532283beb218ea1c95e9c7b00ab28ac (diff)
downloadpoky-8754f4779c33511288b418031aa21cd464affe1e.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: 02dbf124328eebdfdf62402588a41719953a22bf) Signed-off-by: Thomas Perrot <thomas.perrot@tupi.fr> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 88d7b17871fe8340ab7fd5c901d3a535ae098c3e) Signed-off-by: Armin Kuster <akuster808@gmail.com> 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 df76270904..0558d1d87b 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).