From c5bc86d45e003905ef411146e66b414d26fb1ff8 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Mon, 10 Aug 2020 20:16:11 +0200 Subject: Add support for Phased-Update-Percentage This adds support for Phased-Update-Percentage by pinning upgrades that are not to be installed down to 1. The output of policy has been changed to add the level of phasing, and documentation has been improved to document how phased updates work. The patch detects if it is running in a chroot, and if so, always includes phased updates, restoring classic apt behavior to avoid behavioral changes on buildd chroots. Various options are added to control this all: * APT::Get::{Always,Never}-Include-Phased-Updates and their legacy update-manager equivalents to always or never include phased updates * APT::Machine-ID can be set to a UUID string to have all machines in a fleet phase the same * Dir::Etc::Machine-ID is weird in that it's default is sort of like ../machine-id, but not really, as ../machine-id would look up $PWD/../machine-id and not relative to Dir::Etc; but it allows you to override the path to machine-id (as opposed to the value) * Dir::Bin::ischroot is the path to the ischroot(1) binary which is used to detect whether we are running in a chroot. --- debian/NEWS | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'debian') diff --git a/debian/NEWS b/debian/NEWS index 9d9c963c2..eb8e2c116 100644 --- a/debian/NEWS +++ b/debian/NEWS @@ -3,6 +3,13 @@ apt (2.1.16) UNRELEASED; urgency=medium Automatically remove unused kernels on dist-upgrade. To revert to previous behavior, set APT::Get::AutomaticRemove::Kernels to false. + Packages files can now set the Phased-Update-Percentage field to restrict + update rollout to a specified percentage of machines. Previously, this has + only been available to users of Ubuntu's update-manager tool. See + apt_preferences(5) for details and how to configure multiple systems to get + the same updates. Phased updates are disabled in chroots for now to not + break buildd-style setups. + -- Julian Andres Klode Mon, 04 Jan 2021 10:47:14 +0100 apt (1.9.11) experimental; urgency=medium -- cgit v1.2.3