From abae3653a3139359af9050947646747c78f3dec0 Mon Sep 17 00:00:00 2001 From: Confusingboat Date: Tue, 8 Oct 2019 20:29:35 -0500 Subject: [PATCH] increase ioc/mpt timeouts and exit on timeout --- flash-it.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flash-it.sh b/flash-it.sh index 2ac7444..24ec8fc 100644 --- a/flash-it.sh +++ b/flash-it.sh @@ -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 \ No newline at end of file +echo