mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-08-26 12:46:08 +00:00
upgrades: Re-enable unattended-upgrade during dist-upgrade
Previously, when dist-upgrading from bullseye to bookworm, there was an issue where unattended-upgrade gets stuck. See #2266. However, it does not get stuck when dist-upgrading from bookworm to trixie. Signed-off-by: James Valleroy <jvalleroy@mailbox.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
fdaba80de3
commit
2b16bdb5cd
@ -471,10 +471,12 @@ def _perform_dist_upgrade():
|
|||||||
f'{DIST_UPGRADE_PRE_DEBCONF_SELECTIONS}', flush=True)
|
f'{DIST_UPGRADE_PRE_DEBCONF_SELECTIONS}', flush=True)
|
||||||
debconf_set_selections(DIST_UPGRADE_PRE_DEBCONF_SELECTIONS)
|
debconf_set_selections(DIST_UPGRADE_PRE_DEBCONF_SELECTIONS)
|
||||||
|
|
||||||
# XXX: unattended-upgrade gets stuck here, see #2266.
|
|
||||||
# This will upgrade most of the packages.
|
# This will upgrade most of the packages.
|
||||||
# print('Running unattended-upgrade...', flush=True)
|
# Previously, when dist-upgrading from bullseye to bookworm, there was
|
||||||
# subprocess.run(['unattended-upgrade', '--verbose'], check=False)
|
# an issue where unattended-upgrade gets stuck. See #2266. However, it
|
||||||
|
# does not get stuck when dist-upgrading from bookworm to trixie.
|
||||||
|
print('Running unattended-upgrade...', flush=True)
|
||||||
|
subprocess.run(['unattended-upgrade', '--verbose'], check=False)
|
||||||
|
|
||||||
# Remove obsolete packages that may prevent other packages from
|
# Remove obsolete packages that may prevent other packages from
|
||||||
# upgrading.
|
# upgrading.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user