From f46f0825f06d165f4c5a71d049599807c74fea1c Mon Sep 17 00:00:00 2001 From: GONG Jie Date: Tue, 22 Dec 2015 17:50:54 +0800 Subject: [PATCH] Fix GitHub issue 505. Run hack_uname() while mlnxofed_ib_install.v2 is run in install'' stage. --- .../xcat/ib/scripts/Mellanox/mlnxofed_ib_install.v2 | 9 +++++++++ 1 file changed, 9 insertions(+) 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 0f673249a..558b9aa12 100644 --- a/xCAT-server/share/xcat/ib/scripts/Mellanox/mlnxofed_ib_install.v2 +++ b/xCAT-server/share/xcat/ib/scripts/Mellanox/mlnxofed_ib_install.v2 @@ -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[@]}"