User guide

9gPXE
Netbooting Over IB
IB0054606-02 A 9-9
# extract previous contents
gunzip -dc ../initrd-ib-${kern}.img | cpio --quiet -id
# add infiniband modules
mkdir -p lib/ib
find /lib/modules/${kern}/updates -type f | \
egrep
'(iw_cm|ib_(mad|addr|core|sa|cm|uverbs|ucm|umad|ipoib|qib
).ko|rdma_|ipoib_helper)' | \
xargs -I '{}' cp -a '{}' lib/ib
# Some distros have ipoib_helper, others don't require it
if [ -e lib/ib/ipoib_helper ]; then
helper_cmd='/sbin/insmod /lib/ib/ipoib_helper.ko'
fi
# On some kernels, the qib driver will require the dca
module
if modinfo -F depends ib_qib | grep -q dca; then
cp $(find /lib/modules/$(uname -r) -name dca.ko) lib/ib
dcacmd='/sbin/insmod /lib/ib/dca.ko'
else
dcacmd=
fi
# IB requires loading an IPv6 module. If you do not have
it in your initrd, add it
if grep -q ipv6 ../Orig-listing; then
# already added, and presumably insmod'ed, along with any
dependencies
v6cmd=
else
echo -e 'Adding IPv6 and related modules\n'
cp /lib/modules/${kern}/kernel/net/ipv6/ipv6.ko lib
IFS=' ' v6cmd='echo "Loading IPV6"
/sbin/insmod /lib/ipv6.ko'
# Some versions of IPv6 have dependencies, add them.
xfrm=$(modinfo -F depends ipv6)
if [ ${xfrm} ]; then
cp $(find /lib/modules/$(uname -r) -name ${xfrm}.ko)
lib