Customized Fedora initrd / nash problem
Andy Green
fedora at warmcat.com
Thu Dec 4 14:02:07 UTC 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi folks -
Making a customized initrd based on the Fedora one. Need help from folks
wiser and/or more experienced than I am :-)
Having good success until I needed to include an app in the initrd which is
dynamically linked, for example Fedora's ifconfig.
Using objdump -x /sbin/ifconfig I can see that it depends only on libc.so.6.
So I copy over from a Fedora install libs until my initrd /lib is like this:
- -rwxr-xr-x 1 root root 106604 Dec 4 13:45 ld-2.3.2.so
lrwxrwxrwx 1 root root 11 Dec 4 13:45 ld-linux.so.2 ->
ld-2.3.2.so
- -rwxr-xr-x 1 root root 1573260 Dec 4 13:45 libc-2.3.2.so
lrwxrwxrwx 1 root root 13 Dec 4 13:45 libc.so.6 ->
libc-2.3.2.so
Then my script creates a /etc/ld.so.conf containing just /lib and does an
ldconfig inside the (temporarily mounted) initrd
echo "/lib" >$RHINITMOUNT/etc/ld.so.conf
ldconfig -r $RHINITMOUNT
That does create an /etc/ld.so.cache.
Here is the initrd /bin
- -rwxr-xr-x 1 root root 45910 Dec 4 13:45 dhcpcd
- -rwxr-xr-x 1 root root 50552 Dec 4 13:45 ifconfig
- -rwxr-xr-x 1 root root 133016 Dec 4 13:45 insmod
lrwxrwxrwx 1 root root 10 Dec 4 13:45 modprobe -> /sbin/nash
- -rwxr-xr-x 1 root root 29236 Dec 4 13:45 nash
- -rwxr-xr-x 1 root root 40870 Dec 4 13:45 nbd-client
The problem is when nash runs, for all dynamically linked apps, for example,
ifconfig, it reports
ERROR: /bin/ifconfig exited abnormally!
There is no other information to help discover what the problem is -- can
anyone help with some advice? All of the files are taken from current Fedora
packages available yesterday.
- -Andy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE/zz5fjKeDCxMJCTIRAsC3AJ4mXXn/QabhOOvW7kcdLjfWSjfYjgCfSpxF
KhO5DsbHZipGq3O8AEF4Hjc=
=lDpz
-----END PGP SIGNATURE-----
More information about the users
mailing list