summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-08-06 12:59:02 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-08-06 12:59:02 +0000
commit8004d9a36526e4729231809420eff2aaaa82b8df (patch)
tree0b05cf784895bdf8cea7c2a2d28920a5719bea0d /perl-install
parent58811579e3abc5e2741456474b05772378e11219 (diff)
downloaddrakx-8004d9a36526e4729231809420eff2aaaa82b8df.tar
drakx-8004d9a36526e4729231809420eff2aaaa82b8df.tar.gz
drakx-8004d9a36526e4729231809420eff2aaaa82b8df.tar.bz2
drakx-8004d9a36526e4729231809420eff2aaaa82b8df.tar.xz
drakx-8004d9a36526e4729231809420eff2aaaa82b8df.zip
(get_kernels_and_labels): only take kernels for which we have the corresponding /lib/modules/VERSION (otherwise mkinitrd will fail)
Diffstat (limited to 'perl-install')
-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 ];