summaryrefslogtreecommitdiffstats
path: root/perl-install/bootloader.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-03-24 15:36:56 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-03-24 15:36:56 +0000
commit48d8ebf529f1b1c35babaf393b3066195bd6b07b (patch)
treea08f72d2ff429d7d77057dd90de05a247a035e1a /perl-install/bootloader.pm
parente945d1dfe90ba2dd1e21d65dc56cbdce0bf9a8b5 (diff)
downloaddrakx-48d8ebf529f1b1c35babaf393b3066195bd6b07b.tar
drakx-48d8ebf529f1b1c35babaf393b3066195bd6b07b.tar.gz
drakx-48d8ebf529f1b1c35babaf393b3066195bd6b07b.tar.bz2
drakx-48d8ebf529f1b1c35babaf393b3066195bd6b07b.tar.xz
drakx-48d8ebf529f1b1c35babaf393b3066195bd6b07b.zip
sorting based on @prefered is nearly unused, remove it
Diffstat (limited to 'perl-install/bootloader.pm')
-rw-r--r--perl-install/bootloader.pm5
1 files changed, 1 insertions, 4 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index f0c9022f2..49bd70ed1 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -430,13 +430,10 @@ sub get_kernels_and_labels {
my $dir = "$::prefix/boot";
my @l = grep { /^vmlinuz-/ } all($dir);
my @kernels = grep { ! -l "$dir/$_" } @l;
-
- my @preferred = ('', 'secure', 'enterprise', 'smp');
- my %weights = map_index { $_ => $::i } @preferred;
require pkgs;
@kernels =
- sort { c::rpmvercmp($b->{version}, $a->{version}) || $weights{$a->{ext}} <=> $weights{$b->{ext}} }
+ sort { c::rpmvercmp($b->{version}, $a->{version}) }
grep { -d "$::prefix/lib/modules/$_->{complete_version}" }
map {
s/vmlinuz-//;