Re: what's the best small shell for initrd?
On Tue, 17 Jul 2001 21:28:03 +0200
"Russell Coker" <russell@coker.com.au> wrote:
> How can we make the smallest image for initrd?
>
> Currently /bin/sleep drags in libpthread, libm, and librt.
>
> Also insmod, modprobe, raidstart, and echo are all linked with libc6.
>
> How difficult is the ash shell to hack on?
>
> Would anyone be interested in a version of ash that's statically linked and
> which incorporates the functionality of insmod, modprobe, raidstart, and
> sleep (without dragging in libpthread etc)?
>
> I want to fit an initrd and the kernel image on a floppy disk, currently my
> kernel is 600K and my initrd is 1M, I think I should be able to get the
> initrd well under 400K...
>
Busybox can have insmod, sleep and your choice of a few small shells including ash.
I assume your using mklibs.sh to reduce the libraries, also uclibc is really cool, its *heaps* smaller than glibc.
Glenn
Reply to: