From cbf42469c34c618bff4d3dd562de6ba5f8c1ebec Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 7 Oct 2020 14:12:31 -0400 Subject: [PATCH] Add a sample script to install mofed This is an example install script to use in post.custom for mofed --- misc/mofed/install_mofed | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 misc/mofed/install_mofed diff --git a/misc/mofed/install_mofed b/misc/mofed/install_mofed new file mode 100644 index 00000000..c7b35327 --- /dev/null +++ b/misc/mofed/install_mofed @@ -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