A little offtopic maybe. Do you know how I can findout fast which
libraries are needed for a certain executable. I tried to make a small
diskimage with the basic command from my real prep machine and tried to
guess which libraries I needed (but guesses wrong ofcourse). I copied
/bin /sbin /etc /lib and a subset of /usr/bin and /usr/lib. /usr/lib is
very large and I know I only need some of the libs for the commands I
copied in /usr/bin but not which ones.
Well, it seems that ldd or just /lib/ld.so.1 are the tool you need to
use:
/lib/ld.so.1 --list /bin/ls
libpthread.so.0 => /lib/libpthread.so.0 (0x0ff8f000)
librt.so.1 => /lib/librt.so.1 (0x0ff5d000)
libc.so.6 => /lib/libc.so.6 (0x0fe03000)
/lib/ld.so.1 => /lib/ld.so.1 (0x08000000)