<?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>6478</bug_id>
          
          <creation_ts>2014-06-25 10:27:22 +0000</creation_ts>
          <short_desc>Tweaks to remove cruft from non-rootfs (container) images</short_desc>
          <delta_ts>2025-02-06 16:15:45 +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>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>5.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>Qi.Chen</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>44176</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-06-25 10:27:22 +0000</bug_when>
    <thetext>If you&apos;re attempting to build an image which isn&apos;t meant to be a rootfs (such as an image for a secondary partition), at the moment you get a bunch of superfluous files in the image. Here&apos;s what I get with an image where (for testing purposes) IMAGE_INSTALL is set to &quot;&quot;:

    ├── etc
    │   ├── default
    │   │   └── postinst
    │   ├── ld.so.cache
    │   ├── rcS.d
    │   └── version
    ├── lib
    │   └── modules
    │       └── 3.14.4-yocto-standard
    │           ├── modules.alias
    │           ├── modules.alias.bin
    │           ├── modules.builtin.bin
    │           ├── modules.dep
    │           ├── modules.dep.bin
    │           ├── modules.devname
    │           ├── modules.softdep
    │           ├── modules.symbols
    │           └── modules.symbols.bin
    └── var
        └── lib
            └── opkg


ld.so.cache can be taken care of by setting LDCONFIGDEPEND = &quot;&quot;, however the rest of the files remain.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61425</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2016-04-19 22:29:33 +0000</bug_when>
    <thetext>So with krogoth the picture is as follows - this is building test-empty-image in meta-selftest (with ipk as in the original example):

├── etc
│   ├── default
│   │   └── postinst
│   ├── ld.so.cache
│   ├── timestamp
│   └── version
├── run
└── var
    ├── cache
    │   ├── ldconfig
    │   │   └── aux-cache
    │   └── opkg
    └── lib
        └── opkg


Same image with rpm:

├── etc
│   ├── default
│   │   └── postinst
│   ├── ld.so.cache
│   ├── rpm
│   │   ├── platform
│   │   └── sysinfo
│   │       └── Dirnames
│   ├── timestamp
│   └── version
└── var
    └── lib</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>