Skip to content

Commit

Permalink
storage initialisation: apply sleep always
Browse files Browse the repository at this point in the history
Based on feedback from @rmetrich¹ the sleep period should be applied
always as the problem with initialisation is happening also on systems
with higher than few number of LVs where /usr is not on dedicated
volume.

1: #1218 (comment)
  • Loading branch information
pirat89 committed May 6, 2024
1 parent 3cb522d commit da5ce33
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ try_to_mount_usr() {
_sleep_timeout=15
_last_attempt="false"
for i in 0 1 2 3 4 5 6 7 8 9 10 11; do
info "Storage initialisation: Attempt $i of 11. Wait $_sleep_timeout seconds."
sleep $_sleep_timeout
if [ $i -eq 11 ]; then
_last_attempt="true"
fi
Expand All @@ -141,7 +143,6 @@ for i in 0 1 2 3 4 5 6 7 8 9 10 11; do
break
fi

warn "Failed attempt to initialize the storage. Retry in $_sleep_timeout seconds. Attempt: $i of 10"
sleep $_sleep_timeout
warn "Failed attempt to initialize the storage. Retry..."
done

0 comments on commit da5ce33

Please sign in to comment.