Skip to content

Commit

Permalink
[Kernel] Include /boot/*.img while looking for linux kernel images. F…
Browse files Browse the repository at this point in the history
…ixes kernel detection on Raspbian.

Fixes #38 by @fenhl.
  • Loading branch information
liske committed Nov 3, 2016
1 parent c426f7e commit db810ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ needrestart (2.10) unstable; urgency=medium
(Debian Bug#838622 by Paul Wise <pabs@debian.org>)
- [Core] Do really restart services in automatic mode.
(Debian Bug#838355 by Georg <georg@riseup.net>)
- [Kernel] Include /boot/*.img while looking for linux kernel images.
Fixes kernel detection on Raspbian.
(github issue #38 by @fenhl)

-- Thomas Liske <thomas@fiasko-nw.net>

Expand Down
2 changes: 1 addition & 1 deletion perl/lib/NeedRestart/Kernel/Linux.pm
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ sub nr_kernel_check_real($$) {

die "$LOGPREF Not running on Linux!\n" unless($sysname eq 'Linux');

my @kfiles = reverse nsort </boot/vmlinu*>;
my @kfiles = reverse nsort </boot/vmlinu* /boot/*.img>;
$ui->progress_prep(scalar @kfiles, __ 'Scanning linux images...');

my %kernels;
Expand Down

0 comments on commit db810ae

Please sign in to comment.