mirror of
https://git.yoctoproject.org/poky
synced 2026-04-05 08:02:25 +02:00
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: 88d7b17871fe8340ab7fd5c901d3a535ae098c3e) Signed-off-by: Thomas Perrot <thomas.perrot@tupi.fr> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
e2d49ce3c4
commit
ea1c239e43
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user