]> code.ossystems Code Review - openembedded-core.git/commitdiff
runqemu: correct rootfs setup to boot an ide hddimg
authorThomas Perrot <thomas.perrot@tupi.fr>
Sun, 5 Nov 2017 22:43:29 +0000 (23:43 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 5 Nov 2017 22:52:36 +0000 (22:52 +0000)
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>
scripts/runqemu

index 9dc6a05c57f9b35a36857e2d8955a6e4f72f6fe1..fe4459dfb84bfe75d9c5e4845ca80bcd9aeccc21 100755 (executable)
@@ -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).