diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-08-22 22:58:02 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-08-23 12:06:46 +0100 |
commit | f59e729f98ef9b506b0cfdc415567e03ec87f2a9 (patch) | |
tree | f4a95d337672699861da8a3cf988a3abd95c0840 /scripts/runqemu | |
parent | 4ba9a6ffb4e7f6c7eee47aa13252fd981cfe5618 (diff) | |
download | openembedded-core-f59e729f98ef9b506b0cfdc415567e03ec87f2a9.tar.gz openembedded-core-f59e729f98ef9b506b0cfdc415567e03ec87f2a9.tar.bz2 openembedded-core-f59e729f98ef9b506b0cfdc415567e03ec87f2a9.zip |
runqemu: Use virtio to mount cdrom drives
The IDE driver in the kernel is fragile and in 4.12 is causing backtraces.
To unblock 4.12 kernel merging use the virtio CD driver instead to mount
iso images which should be faster and more stable.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-x | scripts/runqemu | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/runqemu b/scripts/runqemu index fd2717ec87..1131324ccc 100755 --- a/scripts/runqemu +++ b/scripts/runqemu @@ -1005,7 +1005,7 @@ class BaseConfig(object): vm_drive = '' if self.fstype in self.vmtypes: if self.fstype == 'iso': - vm_drive = '-cdrom %s' % self.rootfs + vm_drive = '-drive file=%s,if=virtio,media=cdrom' % self.rootfs elif self.get('QB_DRIVE_TYPE'): drive_type = self.get('QB_DRIVE_TYPE') if drive_type.startswith("/dev/sd"): |