diff options
author | Thomas Perrot <thomas.perrot@tupi.fr> | 2017-11-05 23:43:29 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-12-04 17:14:21 +0000 |
commit | 02dbf124328eebdfdf62402588a41719953a22bf (patch) | |
tree | 0413152bf3cdb69afb4b1f7332ecbc7d42a3f671 /scripts | |
parent | 2ea37fd4fad2e5ef21c119b03f09bcf2b0e7266e (diff) | |
download | openembedded-core-contrib-02dbf124328eebdfdf62402588a41719953a22bf.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>
(cherry picked from commit 88d7b17871fe8340ab7fd5c901d3a535ae098c3e)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/runqemu | 2 |
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): % (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). |