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 <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2025-04-13 08:47:23 -04:00
1 parent c0a76cf5e6
commit 6cdab95049
1 file changed
+1 -1
+1 -1
View File
@@ -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.