<?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>12111</bug_id>
          
          <creation_ts>2017-09-21 05:40:20 +0000</creation_ts>
          <short_desc>GRUB2 menuconfig is not getting generated for genericx86 ISO image</short_desc>
          <delta_ts>2018-01-09 22:40:47 +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>Meta-yocto</product>
          <component>configuration</component>
          <version>2.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86</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>major</bug_severity>
          <target_milestone>2.4.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="skumarbdc11">s.kumar.bdc11</reporter>
          <assigned_to name="California Sullivan">california.l.sullivan</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>77004</commentid>
    <comment_count>0</comment_count>
    <who name="skumarbdc11">s.kumar.bdc11</who>
    <bug_when>2017-09-21 05:40:20 +0000</bug_when>
    <thetext>Built a standard genericx86 ISO image for core-image-sato.

Installed on VirtualBox.

After installation during the device reboot the &quot;Linux&quot; entry GRUB menu is not coming. It goes to the grub&gt; prompt.

This issue is not observed with &quot;Pyro&quot; branch it is happening only in master.

Please suggest if I am missing something here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77130</commentid>
    <comment_count>1</comment_count>
    <who name="California Sullivan">california.l.sullivan</who>
    <bug_when>2017-09-25 22:29:51 +0000</bug_when>
    <thetext>What commit are you working with?

I have tried both 87f2328fb271ee34d5102cfdb6d66f97fd5188bd and the tip of master, but wasn&apos;t able to reproduce the issue.

Following these steps works for me:

1) add IMAGE_FSTYPES_pn-core-image-sato_append = &quot; iso&quot; to my local.conf (iso not built automatically for genericx86?) then build core-image-sato
2) dd the iso image to a USB stick
3) boot the image and select grub&apos;s &quot;install&quot; option
4) install to another USB stick though the installer
5) unplug the original USB stick, cycle power, and boot via grub&apos;s &quot;boot&quot; option

This was with a minnowboard using 32-bit firmware, and genericx86 images.

I had seen similar behavior to what you&apos;re describing in the past (~2 months ago), but I wasn&apos;t able to reproduce it for long so I thought it may have been user error on my part. You might be hitting the same thing I was seeing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77133</commentid>
    <comment_count>2</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2017-09-25 23:26:31 +0000</bug_when>
    <thetext>See previous comment, can you provide more details about your commitish and image settings.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77802</commentid>
    <comment_count>3</comment_count>
    <who name="skumarbdc11">s.kumar.bdc11</who>
    <bug_when>2017-10-25 11:03:14 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; See previous comment, can you provide more details about your commitish and
&gt; image settings.

I am currently using 87f2328fb271ee34d5102cfdb6d66f97fd5188bd on master and the image is core-image-x11.

The issue is still there and I think I found the issue.

In meta/recipes-core/initrdscripts/files/init-install.sh, the following code to get the grub version is not working in master branch but working fine in Pyro.

grub_version=$(grub-install -v|sed &apos;s/.* \([0-9]\).*/\1/&apos;)

I changed the option to grub-install from -v to --version and it works fine and could see the menu config got created after ISO installation on the media.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77832</commentid>
    <comment_count>4</comment_count>
    <who name="Stephen K Jolley">sjolley.yp.pm</who>
    <bug_when>2017-10-26 15:01:30 +0000</bug_when>
    <thetext>Cal, Does this answer you question?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78207</commentid>
    <comment_count>5</comment_count>
    <who name="California Sullivan">california.l.sullivan</who>
    <bug_when>2017-11-14 21:45:37 +0000</bug_when>
    <thetext>Explains why I didn&apos;t hit it - I was using the install-efi.sh script rather than the install.sh script.

Your change looks sane, I&apos;ll verify and send a patch, unless you want to.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78331</commentid>
    <comment_count>6</comment_count>
    <who name="California Sullivan">california.l.sullivan</who>
    <bug_when>2017-11-22 21:06:49 +0000</bug_when>
    <thetext>Patch sent to list: http://lists.openembedded.org/pipermail/openembedded-core/2017-November/144790.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78598</commentid>
    <comment_count>7</comment_count>
    <who name="California Sullivan">california.l.sullivan</who>
    <bug_when>2017-12-07 18:20:15 +0000</bug_when>
    <thetext>In master: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=0b8460e2ce9f9a4ea8de8497fbb65b91cb69b8e0

Awaiting backport now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78981</commentid>
    <comment_count>8</comment_count>
    <who name="California Sullivan">california.l.sullivan</who>
    <bug_when>2018-01-09 22:40:47 +0000</bug_when>
    <thetext>Now in rocko: https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?h=rocko-next&amp;id=1affca64b917fd22087d12a6313aea6b00801ba0</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>