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 note that unattended-upgrades already removes unused kernels #79
Comments
Hi @rbalint, Thanks for pointing that out, I'd like to give accurate information so people that is already using u-u keep using it with this feature ( I looked at Ubuntu and Debian packages and is not quite clear to me if that functionality is enabled by default or just is available to enable:
# source /etc/os-release; echo ${VERSION}
16.04.6 LTS (Xenial Xerus)
# apt-config dump | grep -i unattended-upgrade
APT::Periodic::Unattended-Upgrade "1";
Unattended-Upgrade "";
Unattended-Upgrade::Allowed-Origins "";
Unattended-Upgrade::Allowed-Origins:: "${distro_id}:${distro_codename}";
Unattended-Upgrade::Allowed-Origins:: "${distro_id}:${distro_codename}-security";
Unattended-Upgrade::Allowed-Origins:: "${distro_id}ESM:${distro_codename}";
# grep -ci "unattended-upgrade.*kernel" /etc/apt/apt.conf.d/50unattended-upgrades
0
###
# source /etc/os-release; echo ${VERSION}
18.04.2 LTS (Bionic Beaver)
# apt-config dump | grep -i unattended-upgrade
APT::Periodic::Unattended-Upgrade "1";
Unattended-Upgrade "";
Unattended-Upgrade::Allowed-Origins "";
Unattended-Upgrade::Allowed-Origins:: "${distro_id}:${distro_codename}";
Unattended-Upgrade::Allowed-Origins:: "${distro_id}:${distro_codename}-security";
Unattended-Upgrade::Allowed-Origins:: "${distro_id}ESM:${distro_codename}";
Unattended-Upgrade::DevRelease "false";
# grep -i "unattended-upgrade.*kernel" /etc/apt/apt.conf.d/50unattended-upgrades
//Unattended-Upgrade::Remove-Unused-Kernel-Packages "false";
# source /etc/os-release; echo ${PRETTY_NAME}
Debian GNU/Linux buster/sid
# apt-config dump | grep -i unattended-upgrade
APT::Periodic::Unattended-Upgrade "1";
Unattended-Upgrade "";
Unattended-Upgrade::Origins-Pattern "";
Unattended-Upgrade::Origins-Pattern:: "origin=Debian,codename=${distro_codename},label=Debian";
Unattended-Upgrade::Origins-Pattern:: "origin=Debian,codename=${distro_codename},label=Debian-Security";
# grep -i "unattended-upgrade.*kernel" /etc/apt/apt.conf.d/50unattended-upgrades
//Unattended-Upgrade::Remove-Unused-Kernel-Packages "true"; Those default configs and the line below makes me think that a user needs to enable it. Thanks! |
Hi @tonyskapunk, Automatic kernel removal is default in the code but it is commented out in the configuration files. I see that the shipped configuration file is not clear on this in the older versions, but in the latest versions the commented-out value is the default or the default is explained. |
The unattended-upgrades version found in Xenial and later and Buster and later automatically removes auto-removable kernels (in u-u v1.0 and up).
The text was updated successfully, but these errors were encountered: