mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-15 20:34:19 +01:00
Merge pull request #250 from matthewfischer/max_attempts
Print attempt number after max check
This commit is contained in:
@@ -224,10 +224,10 @@ detach()
|
||||
create_rootfs_disk()
|
||||
{
|
||||
ATTEMPT_NUM=$(($ATTEMPT_NUM+1))
|
||||
info "Create root disk image. Attempt ${ATTEMPT_NUM} out of ${MAX_ATTEMPTS}."
|
||||
if [ ${ATTEMPT_NUM} -gt ${MAX_ATTEMPTS} ]; then
|
||||
die "Unable to create root disk image."
|
||||
fi
|
||||
info "Create root disk image. Attempt ${ATTEMPT_NUM} out of ${MAX_ATTEMPTS}."
|
||||
|
||||
calculate_img_size
|
||||
if [ ${OLD_IMG_SIZE} -ne 0 ]; then
|
||||
|
||||
Reference in New Issue
Block a user