Skip to content

Commit c16ca62

Browse files
committed
Purge residual linux-tools-* kernel packages
1 parent afa341f commit c16ca62

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

usr/lib/linuxmint/mintUpdate/kernelwindow.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,11 @@ def install_kernels(self, kernels):
429429
for kernel in kernels:
430430
_KERNEL_PKG_NAMES = KERNEL_PKG_NAMES.copy()
431431
if kernel.installed:
432-
_KERNEL_PKG_NAMES.append("linux-image-unsigned-VERSION-KERNELTYPE") # mainline, remove only
432+
# also purge existing residual kernel packages
433+
_KERNEL_PKG_NAMES.append("linux-image-unsigned-VERSION-KERNELTYPE")
434+
_KERNEL_PKG_NAMES.append("linux-tools-VERSION")
435+
_KERNEL_PKG_NAMES.append("linux-tools-VERSION-KERNELTYPE")
436+
433437
for name in _KERNEL_PKG_NAMES:
434438
name = name.replace("VERSION", kernel.version).replace("-KERNELTYPE", kernel.type)
435439
if name in self.cache:

0 commit comments

Comments
 (0)