[oe-commits] [openembedded-core] 26/122: runqemu: correct rootfs setup to boot an ide hddimg

git at git.openembedded.org git at git.openembedded.org
Mon Dec 4 17:25:04 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch rocko
in repository openembedded-core.

commit 02dbf124328eebdfdf62402588a41719953a22bf
Author: Thomas Perrot <thomas.perrot at tupi.fr>
AuthorDate: Sun Nov 5 23:43:29 2017 +0100

    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 at tupi.fr>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
    (cherry picked from commit 88d7b17871fe8340ab7fd5c901d3a535ae098c3e)
    Signed-off-by: Armin Kuster <akuster808 at gmail.com>
---
 scripts/runqemu | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/runqemu b/scripts/runqemu
index df76270..0558d1d 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).

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list