summaryrefslogtreecommitdiffstats
path: root/perl-install/bootloader.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-03-24 15:38:26 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-03-24 15:38:26 +0000
commitf1cf637d858ec3c0039aaac3f8fc377ffa26b768 (patch)
treef908a10bacf549934e2b6e70d52840c87d20648e /perl-install/bootloader.pm
parent48d8ebf529f1b1c35babaf393b3066195bd6b07b (diff)
downloaddrakx-backup-do-not-use-f1cf637d858ec3c0039aaac3f8fc377ffa26b768.tar
drakx-backup-do-not-use-f1cf637d858ec3c0039aaac3f8fc377ffa26b768.tar.gz
drakx-backup-do-not-use-f1cf637d858ec3c0039aaac3f8fc377ffa26b768.tar.bz2
drakx-backup-do-not-use-f1cf637d858ec3c0039aaac3f8fc377ffa26b768.tar.xz
drakx-backup-do-not-use-f1cf637d858ec3c0039aaac3f8fc377ffa26b768.zip
fix extension parsing (vmlinuz-2.6.3-7mdksmp & vmlinuz-2.6.3-7mdkenterprise vs vmlinuz-2.6.3-7mdk-p3-smp-64GB & vmlinuz-2.6.3-7mdk-i686-up-4GB)
Diffstat (limited to 'perl-install/bootloader.pm')
-rw-r--r--perl-install/bootloader.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index 49bd70ed1..6e08d3824 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -437,7 +437,7 @@ sub get_kernels_and_labels {
grep { -d "$::prefix/lib/modules/$_->{complete_version}" }
map {
s/vmlinuz-//;
- { complete_version => $_, /(.*mdk)(.*)/ ? (ext => $2, version => $1) : (version => $_) };
+ { complete_version => $_, /(.*mdk)-?(.*)/ ? (ext => $2, version => $1) : (version => $_) };
} @kernels;
if ($b_prefer_24) {