Bug 6478 - Tweaks to remove cruft from non-rootfs (container) images
Summary: Tweaks to remove cruft from non-rootfs (container) images
Status: NEW
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.7
Hardware: All Multiple
: Medium+ enhancement
Target Milestone: 5.99
Assignee: Unassigned
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-06-25 10:27 UTC by Paul Eggleton
Modified: 2025-02-06 16:15 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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