From 6cdab950495f63e0be1666dfa75b93c5b46cf871 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Fri, 11 Apr 2025 08:18:41 -0700 Subject: [PATCH] bind: Keep configuration during distribution upgrades Closes: #2511. - By adding bind9 to the list of packages to be held during distribution upgrade. Tests: - Install bind app on Bookworm. Check that /etc/bind/named.conf.options has been updated. Run distribution upgrade to Trixie. Notice that the configuration file is unchanged. A new .dpkg-dist file is available with the new version of the configuration. Journal messages show that bind was held during distupgrade and force upgrade was later run on it. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/modules/upgrades/distupgrade.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plinth/modules/upgrades/distupgrade.py b/plinth/modules/upgrades/distupgrade.py index 0fbc187a2..964ac66fa 100644 --- a/plinth/modules/upgrades/distupgrade.py +++ b/plinth/modules/upgrades/distupgrade.py @@ -20,7 +20,7 @@ logger = logging.getLogger(__name__) OBSOLETE_PACKAGES: list[str] = [] -PACKAGES_WITH_PROMPTS = ['firewalld', 'minidlna', 'radicale'] +PACKAGES_WITH_PROMPTS = ['firewalld', 'minidlna', 'radicale', 'bind9'] PRE_DEBCONF_SELECTIONS: list[str] = [ # Tell grub-pc to continue without installing grub again.