Bug 11073 - runqemu: do no rely on grepping images
Summary: runqemu: do no rely on grepping images
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.3 M4
Assignee: Robert Yang
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-02-17 14:01 UTC by Patrick Ohly
Modified: 2017-04-13 01:32 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Ohly 2017-02-17 14:01:15 UTC
runqemu greps the image for certain magic strings (root=/dev/sd, root=/dev/hd) to determine which disk interface (ide, scsi, virtio) it should use for booting.

This is noticeably slow for me (laptop, big image) and even fails when the machine is loaded:
  grep: memory exhausted
  Aborted

It then falls back to virtio, which works for me.

Besides the performance, the check is also unreliable, because those strings might be contained in images for other reasons.

We should have an explicit mechanism for images to configure this aspect. This can end up in .qemuboot.conf, and then the grep commands can be removed.