summaryrefslogtreecommitdiffstats
path: root/perl-install/bootloader.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-11-09 09:59:18 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-11-09 09:59:18 +0000
commit26f669c84cb181dfee62dac3eeec65d5a8aec660 (patch)
treec454a687d9a843f7def569e9fbbc9433cbd2d69b /perl-install/bootloader.pm
parent01cc16b6174ef4b9ddc74725304478efeb708b52 (diff)
downloaddrakx-backup-do-not-use-26f669c84cb181dfee62dac3eeec65d5a8aec660.tar
drakx-backup-do-not-use-26f669c84cb181dfee62dac3eeec65d5a8aec660.tar.gz
drakx-backup-do-not-use-26f669c84cb181dfee62dac3eeec65d5a8aec660.tar.bz2
drakx-backup-do-not-use-26f669c84cb181dfee62dac3eeec65d5a8aec660.tar.xz
drakx-backup-do-not-use-26f669c84cb181dfee62dac3eeec65d5a8aec660.zip
- bootloader-config:
o do not create "linux" entries for xen kernels, but "xen" entries instead (as requested by guillomovitch on #mandrivafr)
Diffstat (limited to 'perl-install/bootloader.pm')
-rw-r--r--perl-install/bootloader.pm9
1 files changed, 6 insertions, 3 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index 605712975..13959c369 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -84,9 +84,12 @@ sub kernel_str2initrd_short {
sub kernel_str2label {
my ($kernel, $o_use_long_name) = @_;
- my $base = $kernel->{basename} eq 'vmlinuz' ? 'linux' : $kernel->{basename};
- $o_use_long_name || $kernel->{use_long_name} ?
- _sanitize_ver($kernel) : $base;
+ if ($o_use_long_name || $kernel->{use_long_name}) {
+ _sanitize_ver($kernel);
+ } else {
+ $kernel->{basename} eq 'vmlinuz' ? ($kernel->{ext} eq 'xen' ? $kernel->{ext} : 'linux') :
+ $kernel->{basename};
+ }
}
sub get {