From 5c84830ffe24c7a74f86fc7971e2c439a1cc8a6d Mon Sep 17 00:00:00 2001 From: huweihua Date: Tue, 9 Jun 2015 03:46:50 -0400 Subject: [PATCH] force openibd load all modules in need, restart again after installation --- .../share/xcat/ib/scripts/Mellanox/mlnxofed_ib_install | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xCAT-server/share/xcat/ib/scripts/Mellanox/mlnxofed_ib_install b/xCAT-server/share/xcat/ib/scripts/Mellanox/mlnxofed_ib_install index 6ae065f70..3b7c8a7de 100755 --- a/xCAT-server/share/xcat/ib/scripts/Mellanox/mlnxofed_ib_install +++ b/xCAT-server/share/xcat/ib/scripts/Mellanox/mlnxofed_ib_install @@ -59,7 +59,10 @@ INSTALL_DIR='/install' #echo "installroot=$installroot" #echo "------------------------------------------" - +if [ "$(uname -s|tr 'A-Z' 'a-z')" = "linux" ];then + str_dir_name=`dirname $0` + . $str_dir_name/xcatlib.sh +fi #use arg for the OFED_DIR if defined, ARGNUM=$# @@ -152,6 +155,8 @@ deb http://91.189.88.140/ubuntu-ports/ trusty-updates universe" >> /etc/apt/sour perl -x mlnxofedinstall $mlnxofed_options fi rm -Rf /tmp/ofed + #force openibd load all modules in need, restart again + restartservice openibd fi if [[ $NODESETSTATE == "genimage" ]]; then