You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-admin/needrestart/files/needrestart-3.1-gentoo-kern...

25 lines
870 B

From bbd98c32fb5d33f42d1b9257f55a07d62b8de164 Mon Sep 17 00:00:00 2001
From: Craig Andrews <candrews@integralblue.com>
Date: Mon, 7 May 2018 11:28:33 -0400
Subject: [PATCH] [Kernel] Include /boot/kernel* while looking for linux kernel
images
Fixes kernel detection on Gentoo
---
perl/lib/NeedRestart/Kernel/Linux.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/perl/lib/NeedRestart/Kernel/Linux.pm b/perl/lib/NeedRestart/Kernel/Linux.pm
index 6f284f3..69a919c 100644
--- a/perl/lib/NeedRestart/Kernel/Linux.pm
+++ b/perl/lib/NeedRestart/Kernel/Linux.pm
@@ -131,7 +131,7 @@ sub nr_kernel_check_real($$) {
} grep {
# filter initrd images
(!m@^/boot/init@);
- } (</boot/vmlinu*>, </boot/*.img>);
+ } (</boot/vmlinu*>, </boot/*.img>, </boot/kernel*>);
$ui->progress_prep(scalar keys %kfiles, __ 'Scanning linux images...');