User guide
9–gPXE
Netbooting Over IB
IB0054606-02 A 9-11
/sbin/insmod /lib/ib/ib_sa.ko
/sbin/insmod /lib/ib/ib_cm.ko
/sbin/insmod /lib/ib/ib_uverbs.ko
/sbin/insmod /lib/ib/ib_ucm.ko
/sbin/insmod /lib/ib/ib_umad.ko
/sbin/insmod /lib/ib/iw_cm.ko
/sbin/insmod /lib/ib/rdma_cm.ko
/sbin/insmod /lib/ib/rdma_ucm.ko
$dcacmd
/sbin/insmod /lib/ib/ib_qib.ko
$helper_cmd
/sbin/insmod /lib/ib/ib_ipoib.ko
echo "finished loading IB modules"
# End of IB module block
EOF
# first get line number where we append (after last insmod
if any, otherwse
# at start
line=$(egrep -n insmod init | sed -n '$s/:.*//p')
if [ ! "${line}" ]; then line=1; fi
sed -e "${line}r ../init-cmds" init > init.new
# show the difference, then rename
echo -e 'Differences between original and new init
command script\n'
diff init init.new
mv init.new init
chmod 700 init
# now rebuilt the initrd image
find . | cpio --quiet -H newc -o | gzip >
../initrd-${kern}.img
cd ..
# get the file list in the new image
gunzip -dc initrd-${kern}.img | cpio --quiet -it | grep
-v '^\.$' | sort -o New-listing