Skip to content

Commit

Permalink
Use --force-confold on containerd installation in deb based OS (#1935)
Browse files Browse the repository at this point in the history
Signed-off-by: Artiom Diomin <kron82@gmail.com>

Co-authored-by: Artiom Diomin <kron82@gmail.com>
  • Loading branch information
kubermatic-bot and kron4eg authored Apr 5, 2022
1 parent 37427f7 commit 7e16357
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
9 changes: 8 additions & 1 deletion pkg/scripts/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,14 @@ var (
{{ end }}
sudo apt-mark unhold containerd.io || true
sudo apt-get install -y containerd.io=%s
sudo DEBIAN_FRONTEND=noninteractive apt-get install \
--option "Dpkg::Options::=--force-confold" \
--no-install-recommends \
{{- if .FORCE }}
--allow-downgrades \
{{- end }}
-y \
containerd.io=%s
sudo apt-mark hold containerd.io
{{ template "container-runtime-daemon-config" . }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ sudo add-apt-repository "deb https://download.docker.com/linux/ubuntu $(lsb_rele


sudo apt-mark unhold containerd.io || true
sudo apt-get install -y containerd.io=1.4.*
sudo DEBIAN_FRONTEND=noninteractive apt-get install \
--option "Dpkg::Options::=--force-confold" \
--no-install-recommends \
-y \
containerd.io=1.4.*
sudo apt-mark hold containerd.io


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ sudo add-apt-repository "deb https://download.docker.com/linux/ubuntu $(lsb_rele


sudo apt-mark unhold containerd.io || true
sudo apt-get install -y containerd.io=1.4.*
sudo DEBIAN_FRONTEND=noninteractive apt-get install \
--option "Dpkg::Options::=--force-confold" \
--no-install-recommends \
-y \
containerd.io=1.4.*
sudo apt-mark hold containerd.io


Expand Down

0 comments on commit 7e16357

Please sign in to comment.