increase ioc/mpt timeouts and exit on timeout

This commit is contained in:
Confusingboat 2019-10-08 20:29:35 -05:00 committed by GitHub
parent 13e2d5f280
commit abae3653a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ function wait_for_ioc {
echo -n "Waiting for IOC to become ready..."
while ! lsirec/lsirec ${LSIREC_ADDR} info | grep -E "IOC is (OPERATIONAL|READY)"
do
(( c > 20 )) && echo "timed out" && break
(( c > 180 )) && echo "timed out" && echo && echo "Operation incomplete, exiting early. Please check the state of the device." && exit 1
((c++))
echo -n "."
sleep 1
@ -48,7 +48,7 @@ function wait_for_mpt {
echo -n "Waiting for MPT..."
while ! lsiutil/lsiutil -e -p1 -a 0 | grep -E "LSI.+SAS2[0-9]{3}"
do
(( c > 20 )) && echo "timed out" && break
(( c > 180 )) && echo "timed out" && echo "Operation incomplete, exiting early. Please check the state of the device." && exit 1
((c++))
echo -n "."
sleep 1
@ -277,4 +277,4 @@ echo
echo
echo "All done. Copy /tmp/${SAS_ADDRESS}/ to persistent media and reboot."
echo
echo