From 70f86a725c65d3b5e33474f5e6fb6663db5e27e4 Mon Sep 17 00:00:00 2001 From: Rail Aliiev Date: Thu, 22 Jun 2023 14:37:00 -0400 Subject: [PATCH] ci: allow apt background update to finish before updating packages Previously, we run `apt` commands that required exclusive lock at the start of the bootstrap script. Some base images (like the FIPS one) have daily apt autoupgrade cronjob, which is started on boot by systemd. This PR gives the cronjob some time to finish before proceeding with `apt` commands. Epic: none Release note: None --- build/packer/teamcity-agent.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build/packer/teamcity-agent.sh b/build/packer/teamcity-agent.sh index 522aab04829d..e2b3bafd3984 100644 --- a/build/packer/teamcity-agent.sh +++ b/build/packer/teamcity-agent.sh @@ -21,6 +21,9 @@ apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0EBFCD88 cat > /etc/apt/sources.list.d/docker.list <