Bug 4570 - busybox in Yocto/OE doesn't support FEATURE_INDIVIDUAL
Summary: busybox in Yocto/OE doesn't support FEATURE_INDIVIDUAL
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.4
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.1.2
Assignee: Chen Qi
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks: 4207
  Show dependency tree
 
Reported: 2013-05-29 09:13 UTC by Chen Qi
Modified: 2013-06-26 03:12 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chen Qi 2013-05-29 09:13:35 UTC
If CONFIG_FEATURE_INDIVIDUAL is enabled for busybox, yocto-based systems cannot start correctly.

We use update-alternatives to create the symlinks and currently the ALTERNATIVE_TARGET defaults to "/bin/busybox". If we build busybox as individual apps, "/bin/busybox" doesn't exist. So when system starts, commands like 'mount' cannot be found, causing a system halt.

//Chen Qi
Comment 1 Saul Wold 2013-05-30 07:40:57 UTC
What is the effect change in disk space, or are they all still symlinks just not to busybox binary?
Comment 2 Chen Qi 2013-05-30 07:51:18 UTC
Hi Saul,

If busybox is built as a single binary, on our system, we'll have links like below.
/bin/ls -> /bin/busybox
/bin/cat -> /bin/busybox
....

If busybox is built as individual apps, on our system, we'll have links like below.
/bin/ls -> /bin/ls.busybox
/bin/cat -> /bin/cat.busybox
....

If busybox is built as individual apps, the rootfs size is about 1M larger. After all, those apps are not compressed into one binary.
Comment 3 Chen Qi 2013-06-26 03:12:40 UTC
merged into poky/master: 9d68aa5e3590c8eefb221f62b0390a05061a756a

http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=87efa83191f0b4f4cec3a821b6dfe425c781c077