summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-05-19 14:05:30 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-05-19 14:05:30 +0000
commit686c70f8f8b37ea58b04d339e15d4825924c67b9 (patch)
tree3effa4d84bb032787dd1afadec532ac59bc27420 /perl-install
parent5b2538065e8bd7804e2d2ab9c8a556ea653e8a3b (diff)
downloaddrakx-686c70f8f8b37ea58b04d339e15d4825924c67b9.tar
drakx-686c70f8f8b37ea58b04d339e15d4825924c67b9.tar.gz
drakx-686c70f8f8b37ea58b04d339e15d4825924c67b9.tar.bz2
drakx-686c70f8f8b37ea58b04d339e15d4825924c67b9.tar.xz
drakx-686c70f8f8b37ea58b04d339e15d4825924c67b9.zip
further fix #2826 (lilo failling to handle entry with spaces): replace
spaces by underscores in labels (image names are not likely to contain spaces) to prevent the error
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 6d9b1047f..e6428ae92 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -823,6 +823,7 @@ sub install_silo {
sub make_label_lilo_compatible {
my ($label) = @_;
$label = substr($label, 0, 15); #- lilo doesn't handle more than 15 char long labels
+ $label =~ s/ /_/g; #- lilo does not support blank character in image names, labels or aliases
qq("$label");
}