Skip to content

Commit

Permalink
Merge pull request #1797 from Chris-Peterson444/faster-unattended-upg…
Browse files Browse the repository at this point in the history
…rades

Make unattended upgrades run faster by disabling minimal steps
  • Loading branch information
dbungert committed Sep 15, 2023
2 parents 3540ad0 + cd7d3dd commit a4fe424
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions subiquity/server/controllers/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -811,6 +811,14 @@ async def stop_unattended_upgrades(self):
# a metered connection.
Unattended-Upgrade::OnlyOnACPower "false";
Unattended-Upgrade::Skip-Updates-On-Metered-Connections "true";
# Set MinimalSteps to false to speedup install times. "true", the default, will
# atmoize updates to enable interrupts between downloads, but this causes the
# install to slow down considerably. This is a major bottleneck of the install.
# Some testing shows a 3-4x speedup on the unattended-upgrades section of the
# install when this is set to false. However, this will make interrupting
# this section of the install process difficult.
Unattended-Upgrade::MinimalSteps "false";
"""

uu_apt_conf_update_security = b"""\
Expand Down

0 comments on commit a4fe424

Please sign in to comment.