Netboot Mailing List (by thread)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple query



pagarwal@hss.hns.com wrote:
> 
> Hi Marc,
> 
> Thanks for providing the good file system template. Actually I had put most of
> these but was still missing some important libraries.

i do something like this (the trick is to use ldd to get a list of needed libs)

# copy libraries
LIBS=$( ldd sbin/* bin/* | grep "[ \t]*lib" | grep -v "ld-linux" | cut -d " " -f
1 | sort -u )
echo "copy to /lib :" # $LIBS
for i in $LIBS
do
 cp -v /lib/$i lib
done

# copy other libaries
echo "copy ld-linux.so.* libnss*"
for i in /lib/ld-linux.so.[0-9] /lib/libnss*
do
  cp -v $i lib
done      


Gustl

-- 
 |\   \\\\__     o  August Hoerandl
 | \_/    o \    o  HTL Wien I
  > _   (( <_  oo   hoerandl@elina.htlw1.ac.at
 | / \__+___/       http://elina.htlw1.ac.at/~hoerandl
 |/     |/
===========================================================================
This Mail was sent to netboot mailing list by:
August =?iso-8859-1?Q?H=F6randl?= <hoerandl@elina.htlw1.ac.at>
To get help about this list, send a mail with 'help' as the only string in
it's body to majordomo@baghira.han.de. If you have problems with this list,
send a mail to netboot-owner@baghira.han.de.



For requests or suggestions regarding this mailing list archive please write to netboot@gkminix.han.de.