diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2002-08-06 12:59:02 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2002-08-06 12:59:02 +0000 |
commit | 8004d9a36526e4729231809420eff2aaaa82b8df (patch) | |
tree | 0b05cf784895bdf8cea7c2a2d28920a5719bea0d /perl-install/bootloader.pm | |
parent | 58811579e3abc5e2741456474b05772378e11219 (diff) | |
download | drakx-backup-do-not-use-8004d9a36526e4729231809420eff2aaaa82b8df.tar drakx-backup-do-not-use-8004d9a36526e4729231809420eff2aaaa82b8df.tar.gz drakx-backup-do-not-use-8004d9a36526e4729231809420eff2aaaa82b8df.tar.bz2 drakx-backup-do-not-use-8004d9a36526e4729231809420eff2aaaa82b8df.tar.xz drakx-backup-do-not-use-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/bootloader.pm')
-rw-r--r-- | perl-install/bootloader.pm | 1 |
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 ]; |