User guide
9–gPXE
Netbooting Over IB
9-8 IB0054606-02 A
b. The infinipath rpm will install the file
/usr/share/infinipath/gPXE/gpxe-qib-modify-initrd
with contents similar to the following example. You can either run the
script to generate a new initrd image, or use it as an example, and
customize as appropriate for your site.
# This assumes you will use the currently running version
of linux, and
# that you are starting from a fully configured machine of
the same type
# (hardware configuration), and BIOS settings.
#
# start with a known path, to get the system commands
PATH=/sbin:/usr/sbin:/bin:/usr/bin:$PATH
# start from a copy of the current initd image
mkdir -p /var/tmp/initrd-ib
cd /var/tmp/initrd-ib
kern=$(uname -r)
if [ -e /boot/initrd-${kern}.img ]; then
initrd=/boot/initrd-${kern}.img
elif [ -e /boot/initrd ]; then
initrd=/boot/initrd
else
echo Unable to locate correct initrd, fix script and
re-run
exit 1
fi
cp ${initrd} initrd-ib-${kern}.img
# Get full original listing
gunzip -dc initrd-ib-${kern}.img | cpio -it --quiet |
grep -v '^\.$' | sort -o Orig-listing
# start building modified image
rm -rf new # for retries
mkdir new
cd new