<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>11073</bug_id>
          
          <creation_ts>2017-02-17 14:01:15 +0000</creation_ts>
          <short_desc>runqemu: do no rely on grepping images</short_desc>
          <delta_ts>2017-04-13 01:32:06 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.3 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Patrick Ohly">patrick.ohly</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>joshuagloe</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>70802</commentid>
    <comment_count>0</comment_count>
    <who name="Patrick Ohly">patrick.ohly</who>
    <bug_when>2017-02-17 14:01:15 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72427</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2017-04-13 01:32:06 +0000</bug_when>
    <thetext>Merged into master:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=f57393b386499c607e01ce1b3f1503b2cdca73d9</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>