mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-21 18:50:28 +00:00
Merge pull request #6803 from gurevichmark/retry_rinstall
Retry rinstall if first one fails
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user