<?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>6161</bug_id>
          
          <creation_ts>2014-04-15 06:16:18 +0000</creation_ts>
          <short_desc>grub: need keep 40_custom blank</short_desc>
          <delta_ts>2014-06-17 09:01:07 +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>core</component>
          <version>1.7</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>1.7 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Yang">liezhi.yang</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>koen</cc>
    
    <cc>mark.hatle</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>Qi.Chen</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>42656</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2014-04-15 06:16:18 +0000</bug_when>
    <thetext>We have this in recipes-bsp/grub/grub/40_custom:

#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the &apos;exec tail&apos; line above.
menuentry &quot;Linux&quot; {
    set root=(hd0,1)
    linux /vmlinuz root=__ROOTFS__ rw __CONSOLE__ __VIDEO_MODE__ __VGA_MODE__ quiet
}

These lines are for initrdscripts/files/init-install.sh, the side effect is that it would make the target&apos;s grub-mkconfig doesn&apos;t work well since the 40_custom will be installed to /etc/grub.d/40_custom, the grub-mkconfig will run the 40_custom, and there will always be a &apos;menuentry &quot;Linux&quot;&apos; menu in grub.cfg no matter it is valid or not, we need do this in init-install.sh rather than grub to fix the problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44004</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2014-06-17 09:01:07 +0000</bug_when>
    <thetext>Fixed on master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=ec53bfd18c4e5d92ec4baedd702248a303a15dfa
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=c2e63957d5abaa4bb10507da5ba16f01112d0bf5</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>