ok, one more try
I am trying to add some applications to initrd. But every binary file I add is not found during boot. It is probably a problem with missing libraries, but I did not find the solution.
problem history and root: I was looking for some kind of bootsplash program which have support for user input, because I wanted to let user enter luks-cryptsetup password in some of bootsplash gui and not on command line. "usplash" from ubuntu is able to do this and I decided to test it. I compiled it and copied executables to initrd-tree/sbin. I put a command to run usplash executable in initrd-tree/init, but I always get an error that "usplash" is not found. But the file is there.
1st idea: A few guys on irc#slackware told me to check usplash for missing libraries and include these in initrd. I found missing libs and I copied these in initrd-tree but still the same error.
2nd idea: usplash is maybe somehow invalid. I decided to test with an another file and I copied "mknod" from /bin to initrd-tree/bin. I put a command in initrd-tree/bin to run mknod but I again received the error that the file was not found. "ls" is also in initrd-tree/bin and it can be found (ls is symlink to busybox).
this is the output of "ldd /bin/mknod":
Code:
mm@x31:/boot/initrd-tree/bin$ ldd /bin/mknod
linux-gate.so.1 => (0xffffe000)
libc.so.6 => /lib/libc.so.6 (0xb7e46000)
/lib/ld-linux.so.2 (0xb7fa8000)
I copied all these libs to initrd-tree, made a new initrd, but "mknod" could not be found.
I am obviously doing something wrong... and I hope that you understand what I am trying to explain

.