2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-21 02:30:21 +00:00

Merge pull request #6803 from gurevichmark/retry_rinstall

Retry rinstall if first one fails
This commit is contained in:
cxhong
2020-08-12 16:32:35 -04:00
committed by GitHub

View File

@@ -30,8 +30,13 @@ do
echo "rinstall $node osimage=$osimage"
rinstall $node osimage=$osimage
if [ $? != 0 ];then
echo "rinstall command failed ..."
exit 1
echo "First attempt to run rinstall command failed ..."
# First rinstall failed, try again with verbose flag
rinstall $node osimage=$osimage -V
if [ $? != 0 ];then
echo "Second attempt to run rinstall command failed ..."
exit 1
fi
fi
#sleep while for installation.