User guide

9gPXE
Netbooting Over IB
9-10 IB0054606-02 A
IFS=' ' v6cmd='/sbin/insmod /lib/'${xfrm}'.ko
'"$v6cmd"
crypto=$(modinfo -F depends $xfrm)
if [ ${crypto} ]; then
cp $(find /lib/modules/$(uname -r) -name
${crypto}.ko) lib
IFS=' ' v6cmd='/sbin/insmod /lib/'${crypto}'.ko
'"$v6cmd"
fi
fi
fi
# we need insmod to load the modules; if not present it,
copy it
mkdir -p sbin
grep -q insmod ../Orig-listing || cp /sbin/insmod sbin
echo -e 'NOTE: you will need to config ib0 in the normal
way in your booted root
filesystem, in order to use it for NFS, etc.\n'
# Now build the commands to load the additional modules.
We add them just after
# the last existing insmod command, so all other
dependences will be resolved
# You can change the location if desired or necessary.
# loading order is important. You can verify the order
works ahead of time
# by running "/etc/init.d/openibd stop", and then running
these commands
# manually by cut and paste
# This will work on SLES, although different than the
standard mechanism
cat > ../init-cmds << EOF
# Start of IB module block
$v6cmd
echo "loading IB modules"
/sbin/insmod /lib/ib/ib_addr.ko
/sbin/insmod /lib/ib/ib_core.ko
/sbin/insmod /lib/ib/ib_mad.ko