blob: 6b8c221098b3ebf2cf711bdc83bca6d58017ffb9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
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...');
|