<?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>2952</bug_id>
          
          <creation_ts>2012-08-16 09:38:41 +0000</creation_ts>
          <short_desc>Require the ability to have Yocto install the kernel modules in the root filesystem but not the bzImage</short_desc>
          <delta_ts>2012-08-20 11:16:20 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Kernel</product>
          <component>kernel-tooling</component>
          <version>1.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>1.3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="John Toomey">john.toomey</reporter>
          <assigned_to name="Bruce Ashfield">bruce.ashfield</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>sgw</cc>
    
    <cc>yp.kernel.watcher</cc>
    
    <cc>yp.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>24081</commentid>
    <comment_count>0</comment_count>
    <who name="John Toomey">john.toomey</who>
    <bug_when>2012-08-16 09:38:41 +0000</bug_when>
    <thetext>By using IMAGE_INSTALL += &apos;kernel-modules&apos; in our image recipe we can have the modules installed in /lib on the root file system but this also causes the kernel bzImage to be installed in /boot which is not required because we have the kernel loading from elsewhere. 

This is an issue because size is a constraint and including the kernel pushes the size of the root file system over our limit. The recipe we are using is based on core-image-minimal.bb.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24161</commentid>
    <comment_count>1</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2012-08-17 19:27:51 +0000</bug_when>
    <thetext>Can you attach the output of bitbake -e &lt;your image&gt; ? 

It&apos;s the kernel-image package that adds /boot and the kernel image, and it isn&apos;t triggered 
by the kernel-modules package. kernel-image is in the kernel-modules blacklist, so won&apos;t be added to it as a runtime dependency.

There must be something else adding this depencency, and the environment dump may show it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24220</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2012-08-20 11:16:20 +0000</bug_when>
    <thetext>The dependency is introduced by this line:

do_split_packages(d, root=&apos;/lib/modules&apos;, file_regex=module_regex, output_pattern=module_pattern, description=&apos;%s kernel module&apos;, postinst=postinst, postrm=postrm, recursive=True, hook=frob_metadata, extra_depends=&apos;update-modules kernel-%s&apos; % d.getVar(&quot;KERNEL_VERSION&quot;, True))

kernel-${KERNEL_VERSION} is provided by kernel-base, and kernel-base RDEPENDS upon kernel-image - although this part is optional. John has changed the latter in his kernel recipe and the kernel-image is no longer pulled in.

I&apos;m marking this as resolved, but I do think we need to document this clearly.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>