summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Andrews <candrews@gentoo.org>2018-05-12 21:51:07 -0400
committerCraig Andrews <candrews@gentoo.org>2018-05-12 21:51:43 -0400
commit8f8e9edcf9e2fe40aef8246bee1ada6b979a96bc (patch)
tree543675e61e01a1b788c1772e4fffb78a00b455fa /app-admin/needrestart/files
parentdev-python/botocore: drop old non-stabilized ebuilds (diff)
downloadgentoo-8f8e9edcf9e2fe40aef8246bee1ada6b979a96bc.tar.gz
gentoo-8f8e9edcf9e2fe40aef8246bee1ada6b979a96bc.tar.bz2
gentoo-8f8e9edcf9e2fe40aef8246bee1ada6b979a96bc.zip
app-admin/needrestart: Fix detection of Gentoo kernels
https://github.com/liske/needrestart/pull/113 Closes: https://bugs.gentoo.org/654958 Package-Manager: Portage-2.3.36, Repoman-2.3.9
Diffstat (limited to 'app-admin/needrestart/files')
-rw-r--r--app-admin/needrestart/files/needrestart-3.1-gentoo-kernel-detection.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/app-admin/needrestart/files/needrestart-3.1-gentoo-kernel-detection.patch b/app-admin/needrestart/files/needrestart-3.1-gentoo-kernel-detection.patch
new file mode 100644
index 000000000000..6b8c221098b3
--- /dev/null
+++ b/app-admin/needrestart/files/needrestart-3.1-gentoo-kernel-detection.patch
@@ -0,0 +1,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...');
+