Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions usr/lib/linuxmint/mintUpdate/kernelwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,12 +436,20 @@ def install_kernels(self, kernels):
_KERNEL_PKG_NAMES = KERNEL_PKG_NAMES.copy()
if kernel.installed:
# also purge existing residual kernel packages
_KERNEL_PKG_NAMES.append("linux-image-unsigned-VERSION-KERNELTYPE")
_KERNEL_PKG_NAMES.append("linux-tools-VERSION")
_KERNEL_PKG_NAMES.append("linux-tools-VERSION-KERNELTYPE")
_KERNEL_PKG_NAMES.extend([
"linux-image-unsigned-VERSION-KERNELTYPE",
"linux-tools-VERSION",
"linux-tools-VERSION-KERNELTYPE",
"linux-hwe-MAJOR_MINOR_VERSION-tools-VERSION",
"linux-hwe-MAJOR_MINOR_VERSION-headers-VERSION",
])

for name in _KERNEL_PKG_NAMES:
name = name.replace("VERSION", kernel.version).replace("-KERNELTYPE", kernel.type)
name = (name
.replace("MAJOR_MINOR_VERSION", kernel.version.rpartition('.')[0])
.replace("VERSION", kernel.version)
.replace("-KERNELTYPE", kernel.type)
)
if name in self.cache:
pkg = self.cache[name]
if kernel.installed:
Expand Down
Loading