mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-29 10:10:19 +00:00
The unattended-upgrades package removes older kernel packages before starting the upgrade process, so that the current kernel and the newly installed kernel will be retained and all older kernel packages will be removed. The removal of older kernel packages requires "apt autoremove" to list them. So, a setting to enable autoremoval of packages has been turned on as well. When tested on a vagrant box, the current kernel 4.17.0.1 and the new kernel 4.17.0.3 have been retained. Older kernels were removed preemptively before the installation of 4.17.0.3 Fixes #1372 Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
8 lines
354 B
Plaintext
8 lines
354 B
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";
|