Skip to content

Commit a5ea6ae

Browse files
authored
Purge residual linux-tools-* kernel packages (#963)
1 parent b82babf commit a5ea6ae

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
@@ -434,7 +434,11 @@ def install_kernels(self, kernels):
434434
for kernel in kernels:
435435
_KERNEL_PKG_NAMES = KERNEL_PKG_NAMES.copy()
436436
if kernel.installed:
437-
_KERNEL_PKG_NAMES.append("linux-image-unsigned-VERSION-KERNELTYPE") # mainline, remove only
437+
# also purge existing residual kernel packages
438+
_KERNEL_PKG_NAMES.append("linux-image-unsigned-VERSION-KERNELTYPE")
439+
_KERNEL_PKG_NAMES.append("linux-tools-VERSION")
440+
_KERNEL_PKG_NAMES.append("linux-tools-VERSION-KERNELTYPE")
441+
438442
for name in _KERNEL_PKG_NAMES:
439443
name = name.replace("VERSION", kernel.version).replace("-KERNELTYPE", kernel.type)
440444
if name in self.cache:

0 commit comments

Comments
 (0)