2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-23 11:40:25 +00:00

Retry rinstall if first one fails

This commit is contained in:
Mark Gurevich
2020-08-12 09:58:25 -04:00
parent aab3c29be6
commit 3196739848

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.