From 88d7b17871fe8340ab7fd5c901d3a535ae098c3e Mon Sep 17 00:00:00 2001 From: Thomas Perrot Date: Sun, 5 Nov 2017 23:43:29 +0100 Subject: 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 Signed-off-by: Richard Purdie --- scripts/runqemu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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): % (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). -- cgit 1.2.3-korg