Skip to content

Commit e3f424c

Browse files
ayushr2gvisor-bot
authored andcommitted
Set DEBIAN_FRONTEND to be noninteractive for containerd installing.
This was causing annoying timeout issues on BuildKite where the cgroupsv2 agents that are on ubuntu-2110 image to get stuck indefinitely. Also rollback the experimental changes in pre-command hook to simplify scripts and make things consistent. PiperOrigin-RevId: 432671125
1 parent b1ceabc commit e3f424c

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

.buildkite/hooks/pre-command

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,7 @@ function install_pkgs() {
44
export DEBIAN_FRONTEND=noninteractive
55
while true; do
66
if sudo -E apt-get update && \
7-
sudo -E apt-get install -y \
8-
-o Dpkg::Options::=--force-confold \
9-
-o Dpkg::Options::=--force-confdef \
10-
--allow-downgrades \
11-
--allow-remove-essential \
12-
--allow-change-held-packages \
13-
"$@"; then
7+
sudo -E apt-get install -y "$@"; then
148
break
159
fi
1610
done

tools/install_containerd.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ fi
6262
readonly BTRFS_DEV
6363

6464
# Install dependencies for the crictl tests.
65+
export DEBIAN_FRONTEND=noninteractive
6566
while true; do
6667
if (apt-get update && apt-get install -y \
6768
"${BTRFS_DEV}" \

0 commit comments

Comments
 (0)