KernelRemoval section of DistUpgrade.cfg shouldn't require manual updating

Bug #1828100 reported by Brian Murray on 2019-05-07
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
Status tracked in Eoan
Eoan
High
Unassigned

Bug Description

Currently the method to determine kernels to auto remove uses a hard-coded version number and package base names in DistUpgrade.cfg. This need to be updated for every release of Ubuntu and has been missed in the past - bug 1828072. It'd be better if the autoremovalable kernels did not need to be updated all the time and instead utilized the logic apt uses (/etc/apt/apt.conf.d/01autoremove) to determine what kernels are removable.

tags: added: rls-ee-incoming
summary: - KernelRemoval section of DistUpgrade.cfg requires manual updating
+ KernelRemoval section of DistUpgrade.cfg shouldn't require manual
+ updating
Brian Murray (brian-murray) wrote :

Additionally, the Version part of KernelRemoval is expected to be a string and not a list so you can't have multiple kernel versions thereby making it so that we can only remove the release kernel or the hwe one which is also lame.

tags: added: id-5cd1c9cc9dc3ea20e97b7fbd
Steve Langasek (vorlon) on 2019-05-09
Changed in ubuntu-release-upgrader (Ubuntu):
importance: Undecided → High
tags: removed: rls-ee-incoming
Balint Reczey (rbalint) wrote :

I'm wondering if we still need this functionality in u-r-u.

It offers removing removal of all autoremovable packages at the end of the upgrade for a long time and kernels are autoremoved periodically by unattended-upgrades and update-manager in Xenial and up.

IMO those are enough and since u-r-u performs autoremoval after the upgrade it is not affected by apt's LP: #1615381.

Changed in ubuntu-release-upgrader (Ubuntu Eoan):
status: New → Confirmed
Balint Reczey (rbalint) wrote :

So I propose just dropping the functionality from u-r-u which would solve the maintenance problem since the kernels are removed in other ways.

tags: added: id-5cd44c37cb4cfa83161e8d98
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers