2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-25 05:41:09 +00:00

Merge pull request #551 from neo954/issue505infiniband

Fix GitHub issue 505. Run hack_uname() while mlnxofed_ib_install.v2 is run in install stage
This commit is contained in:
Weihua Hu
2016-01-20 14:08:30 +08:00

View File

@@ -172,6 +172,11 @@ function cleanup()
local -i max_retry=99
if [ "$NODESETSTATE" != "genimage" ]; then
# Clean up the uname hacking
if [ -f "/bin/uname.save" ]; then
mv -f "/bin/uname.save" "/bin/uname"
fi
if mount | grep -q "/tmp/ofed/mountpoint"; then
while ! umount "/tmp/ofed/mountpoint"
do
@@ -294,6 +299,10 @@ EOF
fi
echo "[OK]"
if [ "$NODESETSTATE" = "install" ]; then
hack_uname
fi
echo "Start Mellanox OFED installation ........."
env -i "PATH=${PATH}" /tmp/ofed/mountpoint/mlnxofedinstall "${MLNXOFED_OPTS[@]}"