mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-13 10:30:16 +00:00
Test: - Downgrade kernel (linux-image-amd64) to earlier version. - Reboot into the older kernel. - Remove the newer kernel package. - Run FreedomBox in develop mode. - Run unattended-upgrades --debug to upgrade all packages. - At the end a message is printed that shutdown is scheduled. - Check /run/systemd/shutdown/scheduled file and see that microseconds since epoch is set to tomorrow 02:00 local time. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
25 lines
1.2 KiB
Plaintext
25 lines
1.2 KiB
Plaintext
// Remove unused automatically installed kernel-related packages
|
|
// (kernel images, kernel headers and kernel version locked tools).
|
|
Unattended-Upgrade::Remove-Unused-Kernel-Packages "true";
|
|
|
|
// Do automatic removal of new unused dependencies after the upgrade
|
|
// (equivalent to apt-get autoremove)
|
|
Unattended-Upgrade::Remove-Unused-Dependencies "true";
|
|
|
|
// Allow upgrading from backports repository. This origin pattern is added to
|
|
// other configured patterns. This only works if the current distribution is a
|
|
// stable release. Also all backuports packages have a priority of 100 which is
|
|
// ignored. Only packages that have higher priority set explicitly will get
|
|
// upgraded. Only selected FreedomBox packages have high priority set on them.
|
|
Unattended-Upgrade::Origins-Pattern {
|
|
"o=Debian Backports,a=${distro_codename}-backports,l=Debian Backports";
|
|
};
|
|
|
|
// Automatically reboot *WITHOUT CONFIRMATION* if
|
|
// the file /var/run/reboot-required is found after the upgrade
|
|
Unattended-Upgrade::Automatic-Reboot "true";
|
|
|
|
// If automatic reboot is enabled and needed, reboot at the specific
|
|
// time instead of immediately
|
|
Unattended-Upgrade::Automatic-Reboot-Time "02:00";
|