Bug 6478

Summary: Tweaks to remove cruft from non-rootfs (container) images
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Paul Eggleton <bluelightning>
Component: coreAssignee: Unassigned <unassigned>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: Medium+ CC: meta.mr.watcher, meta.watcher, Qi.Chen, randy.macleod, richard.purdie
Version: 1.7   
Target Milestone: 5.99   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Paul Eggleton 2014-06-25 10:27:22 UTC
If you're attempting to build an image which isn'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's what I get with an image where (for testing purposes) IMAGE_INSTALL is set to "":

    ├── 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 = "", however the rest of the files remain.
Comment 1 Paul Eggleton 2016-04-19 22:29:33 UTC
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