Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please document when updates are downloaded when in InstallOnShutdown is used #342

Open
Yvan-Masson opened this issue Mar 27, 2023 · 1 comment

Comments

@Yvan-Masson
Copy link

Yvan-Masson commented Mar 27, 2023

Hi,

Could you document, both in /etc/apt/apt.conf.d/50unattended-upgrades and /usr/share/doc/unattended-upgrades/README.md.gz, nearby option Unattended-Upgrade::InstallOnShutdown, when are updates downloaded in this mode? Is this when apt-daily.service runs or when system shutdowns?

This is important because if packages are downloaded during normal use, admin would probably use Acquire::http::Dl-Limit to keep bandwidth for user, but in the other case we probably want to download updates as fast as possible so that the user does not wait too long that his/her computer shutdowns.

Regards,
Yvan

@Yvan-Masson
Copy link
Author

I tried to understand a bit more by myself. If I am not wrong, packages download can be done at two different times:

  • during run of apt-daily.service, depending of the value of APT::Periodic::Download-Upgradable-Packages
  • during shutdown by unattended-upgrades.service, if packages have not been downloaded yet

Am I correct?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant