summaryrefslogtreecommitdiffstats
path: root/perl-install/bootloader.pm
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mandriva.org>2010-01-26 20:02:55 +0000
committerPascal Terjan <pterjan@mandriva.org>2010-01-26 20:02:55 +0000
commitc448f23b16b804f4ba3db0da21efab0451f75f4e (patch)
treeab816f4357d246f8afa80d42940969b02131efed /perl-install/bootloader.pm
parentc29c8b0fe1405abfe4c4a9e74a94b5f4e3f312ce (diff)
downloaddrakx-c448f23b16b804f4ba3db0da21efab0451f75f4e.tar
drakx-c448f23b16b804f4ba3db0da21efab0451f75f4e.tar.gz
drakx-c448f23b16b804f4ba3db0da21efab0451f75f4e.tar.bz2
drakx-c448f23b16b804f4ba3db0da21efab0451f75f4e.tar.xz
drakx-c448f23b16b804f4ba3db0da21efab0451f75f4e.zip
fix bootloader entry name for rc kernels
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 5267981ca..5f75a748c 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -43,7 +43,7 @@ sub vmlinuz2kernel_str {
{
basename => $basename,
version => $version,
- $version =~ /(.*)-(\D.*)-(\d+(mdk|mdv|mnb))$/ ? #- eg: 2.6.22.5-server-1mdv
+ $version =~ /([\d.]*)-(\D.*)-((\d+|0\.rc\d+.*)(mdk|mdv|mnb))$/ ? #- eg: 2.6.22.5-server-1mdv
(ext => $2, version_no_ext => "$1-$3") :
$version =~ /(.*md[kv])-?(.*)/ ? #- (old) eg: 2.6.17-13mdventerprise
(ext => $2, version_no_ext => $1) : (version_no_ext => $version),