bullseye->bookworm: boring tweak to remove chattr +i from /etc/resolv.conf otherwise resolvconf will later explode and complain about it

This commit is contained in:
Alexandre Aubin 2024-07-30 23:53:39 +02:00
parent d766f7cdda
commit 65ea34d7cb

View file

@ -133,6 +133,9 @@ class MyMigration(Migration):
"echo 'libc6 libraries/restart-without-asking boolean true' | debconf-set-selections"
)
# Stupid stuff because resolvconf later wants to edit /etc/resolv.conf and will miserably crash if it's immutable
os.system("chattr -i /etc/resolv.conf")
# Do not restart nginx during the upgrade of nginx-common and nginx-extras ...
# c.f. https://manpages.debian.org/bullseye/init-system-helpers/deb-systemd-invoke.1p.en.html
# and zcat /usr/share/doc/init-system-helpers/README.policy-rc.d.gz