2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 11:01:09 +00:00

Add a sample script to install mofed

This is an example install script to use in post.custom for mofed
This commit is contained in:
Jarrod Johnson 2020-10-07 14:12:31 -04:00
parent 8dd66211b7
commit cbf42469c3

14
misc/mofed/install_mofed Normal file
View File

@ -0,0 +1,14 @@
. /etc/confluent/functions
if lspci -d 15b3::0207 -n |grep 207 > /dev/null; then
# Uncomment the following two lines and comment out the following
# three lines to use the .iso instead
#fetch_remote ofed/ofed.tgz
#tar xf ofed.tgz
fetch_remote ofed/ofed.iso
mkdir MLNX_OFED
mount -o loop ofed.iso MLNX_OFED
# The rest is common between tar and iso
cd MLNX_OFED*
mount -o loop ofed
./mlnxofedinstall --force
fi