summaryrefslogtreecommitdiffhomepage
path: root/tools/images/ubuntu1604/30_containerd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/images/ubuntu1604/30_containerd.sh')
-rwxr-xr-xtools/images/ubuntu1604/30_containerd.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/tools/images/ubuntu1604/30_containerd.sh b/tools/images/ubuntu1604/30_containerd.sh
index a7472bd1c..fb3699c12 100755
--- a/tools/images/ubuntu1604/30_containerd.sh
+++ b/tools/images/ubuntu1604/30_containerd.sh
@@ -34,7 +34,17 @@ install_helper() {
}
# Install dependencies for the crictl tests.
-apt-get install -y btrfs-tools libseccomp-dev
+while true; do
+ if (apt-get update && apt-get install -y \
+ btrfs-tools \
+ libseccomp-dev); then
+ break
+ fi
+ result=$?
+ if [[ $result -ne 100 ]]; then
+ exit $result
+ fi
+done
# Install containerd & cri-tools.
GOPATH=$(mktemp -d --tmpdir gopathXXXXX)