From c85a5409865860b2c7ed78cded117ea8d134cac6 Mon Sep 17 00:00:00 2001 From: Ian Davis Date: Thu, 20 Oct 2022 17:14:03 +0100 Subject: [PATCH] Have apt-get wait until it can get a lock --- tools/packer/setup-snap.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/packer/setup-snap.sh b/tools/packer/setup-snap.sh index c6050eaf4..615877f83 100644 --- a/tools/packer/setup-snap.sh +++ b/tools/packer/setup-snap.sh @@ -23,7 +23,8 @@ MANAGED_FILES=( ) # this is required on digitalocean, which does not have snap seeded correctly at this phase. -apt-get -y update && apt-get -y reinstall snapd +apt-get -y -o DPkg::Lock::Timeout=3 update \ + && apt-get -y -o DPkg::Lock::Timeout=3 reinstall snapd snap install lotus