mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-29 09:13:08 +00:00
Fix GitHub issue 505. Run hack_uname() while mlnxofed_ib_install.v2 is run in install'' stage.
This commit is contained in:
parent
2547a42321
commit
f46f0825f0
@ -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[@]}"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user