[PATCH RFC] Add a link for /init for initramfs images

Darren Hart dvhart at linux.intel.com
Wed Nov 30 21:31:38 UTC 2011



On 11/30/2011 12:37 PM, Harald Becker wrote:
>  Hi!
> 
>> On Wednesday, November 30, 2011 11:12 AM, "Darren Hart"
>> <dvhart at linux.intel.com> wrote:
>>> Initramfs images require a /init. If busybox supports INITRD, add the
>>> link.
>>> INITRD and INITRAMFS aren't the same thing, but there isn't an INITRAMFS
>>> feature as of yet.
> 
> What is the reason you are not able to install that link yourself?

I'm interested in streamlining the image build process for the Yocto
Project. I can add the /init link during a different stage of the
process, but as busybox was creating the linuxrc already (which serves
the same basic purpose), this seemed like the most consistent solution.
However, if this is contrary to the direction busybox is headed, I can
fix this in another area of the build.

However, for consistency with linuxrc, it might make sense to include
this now and remove it later as mentioned below.

> 
> IMHO we shall remove that link creation feature of Busybox completely.
> Why can't we have a bb_install script that does this installation. That
> script may not only install the links. The script may even create
> directories, devices and add some necessary (minimalistic) configuration
> files (under /etc). In addition the script may be tailored to create
> Busybox root systems for different purposes (initrd, initramfs, hd boot
> portion, chroot environment, web server cgi environment, etc.). After

The different purposes should be covered by the INITRD (or possibly a
new INITRAMFS) config options. The links would only be created for those
situations.

--
Darren

> root system creation the script is no longer required and may be removed
> (not to be included in initramfs - will not waste that space in
> minimalistic systems).
> 
> Just to give my cent on that topic. I always disable that install
> feature to create a Busybox without that overhead. I never used or need
> it anyways.
> 
> --
> Harald
> 
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox

-- 
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel


More information about the busybox mailing list