From 69674230024a0fc90608c655c06fd5d338de4f3a Mon Sep 17 00:00:00 2001 From: "juvenal.diaz" Date: Sat, 26 Sep 2026 09:11:18 -0600 Subject: [PATCH] avoid trying to update containerd on rebuild cluster --- bootstrap/cluster/main.tf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bootstrap/cluster/main.tf b/bootstrap/cluster/main.tf index 9b32d89..34ad772 100644 --- a/bootstrap/cluster/main.tf +++ b/bootstrap/cluster/main.tf @@ -114,6 +114,11 @@ DOCKER_SOURCES sudo apt-get remove -y containerd runc || true fi + if dpkg -s containerd.io >/dev/null 2>&1; then + sudo apt-mark hold containerd.io + return 0 + fi + apt_get update || { diagnose_apt_network "APT update failed before installing containerd.io" "containerd.io" exit 1 @@ -672,6 +677,11 @@ DOCKER_SOURCES sudo apt-get remove -y containerd runc || true fi + if dpkg -s containerd.io >/dev/null 2>&1; then + sudo apt-mark hold containerd.io + return 0 + fi + apt_get update || { diagnose_apt_network "APT update failed before installing containerd.io" "containerd.io" exit 1