Re: linuxrc, initrd and shared libraries



Jiri Skiskibowski wrote:
Hi,

I am trying to set up an inital ramdisk which contains a linuxrc script. A
test version of this linuxrc looks like this:

-------------------- linuxrc --------------------
#!/bin/sh
#
# $Id: linuxrc,v 1.11 2004/04/26 12:04:46 herbert Exp $

export PATH=/sbin:/bin
export LD_LIBRARY_PATH=/lib:/lib/tls
mount
-------------------------------------------------

The mount command ends up with this error:
./linuxrc: 3 mount: not found


The mount command needs these libraires:

ldd /bin/mount
libc.so.6 => /lib/tls/libc.so.6 (0xb7ea6000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xb7fe0000)

[snip]

What is wrong with my initrd?

There could be other stuff wrong, but at the very least initrd binaries
must be statically linked.
.