summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/bootloader.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index 23dcbc097..845ea6758 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -1038,6 +1038,9 @@ sub suggest {
my @kernels = get_kernels_and_labels() or die "no kernel installed";
+ my %old_kernels = map { vmlinuz2version($_->{kernel_or_dev}) => 1 } @{$bootloader->{entries}};
+ @kernels = grep { !$old_kernels{$_->{version}} } @kernels;
+
foreach my $kernel (@kernels) {
my $e = add_kernel($bootloader, $kernel,
{