From 6de62ee5a4159eae76dccaa301b85a082b7c69f7 Mon Sep 17 00:00:00 2001 From: Aleksandr Chebotov <47745270+al-cheb@users.noreply.github.com> Date: Fri, 8 Jul 2022 07:49:35 +0200 Subject: [PATCH] Apt Always-Include-Phased-Updates (#5873) --- images/linux/scripts/base/apt.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/images/linux/scripts/base/apt.sh b/images/linux/scripts/base/apt.sh index 05d08878c..1f36b4a5f 100644 --- a/images/linux/scripts/base/apt.sh +++ b/images/linux/scripts/base/apt.sh @@ -14,6 +14,13 @@ echo "APT::Acquire::Retries \"10\";" > /etc/apt/apt.conf.d/80-retries # Configure apt to always assume Y echo "APT::Get::Assume-Yes \"true\";" > /etc/apt/apt.conf.d/90assumeyes +# APT understands a field called Phased-Update-Percentage which can be used to control the rollout of a new version. It is an integer between 0 and 100. +# In case you have multiple systems that you want to receive the same set of updates, +# you can set APT::Machine-ID to a UUID such that they all phase the same, +# or set APT::Get::Never-Include-Phased-Updates or APT::Get::Always-Include-Phased-Updates to true such that APT will never/always consider phased updates. +# apt-cache policy pkgname +echo 'APT::Get::Always-Include-Phased-Updates "true";' > /etc/apt/apt.conf.d/99-phased-updates + # Fix bad proxy and http headers settings cat <> /etc/apt/apt.conf.d/99bad_proxy Acquire::http::Pipeline-Depth 0;