diff --git a/xCAT-server/share/xcat/ib/scripts/Mellanox/mlnxofed_ib_install.v2 b/xCAT-server/share/xcat/ib/scripts/Mellanox/mlnxofed_ib_install.v2 index dc4df9918..cc1970044 100755 --- a/xCAT-server/share/xcat/ib/scripts/Mellanox/mlnxofed_ib_install.v2 +++ b/xCAT-server/share/xcat/ib/scripts/Mellanox/mlnxofed_ib_install.v2 @@ -328,6 +328,10 @@ EOF #force openibd load all modules in need, restart again sleep 1 service openibd restart + if [ "$?" != "0" ] ;then + echo "[Error] service openibd restart failed." + exit 1 + fi fi if [[ "$NODESETSTATE" == "genimage" ]]; then