summaryrefslogtreecommitdiffstats
path: root/perl-install/bootloader.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/bootloader.pm')
-rw-r--r--perl-install/bootloader.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index 88c02dc52..bf055697f 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -279,6 +279,7 @@ sub get_kernels_and_labels() {
require pkgs;
@kernels =
sort { c::rpmvercmp($b->[1], $a->[1]) || $weights{$a->[2]} <=> $weights{$b->[2]} }
+ grep { -d "$::prefix/lib/modules/$_->[0]" }
map {
if (my ($version, $ext) = /vmlinuz-((?:[\-.\d]*(?:mdk)?)*)(.*)/) {
[ "$version$ext", $version, $ext ];