summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-08-30 11:05:02 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-08-30 11:05:02 +0000
commit66a3628fe68440fc30f8aafb2ce51001cb8742a1 (patch)
tree205abe0851e0898b265978941cc04bc5207d2696
parent6774e3255b1db6b2a777db8b66c9744345e87004 (diff)
downloaddrakx-66a3628fe68440fc30f8aafb2ce51001cb8742a1.tar
drakx-66a3628fe68440fc30f8aafb2ce51001cb8742a1.tar.gz
drakx-66a3628fe68440fc30f8aafb2ce51001cb8742a1.tar.bz2
drakx-66a3628fe68440fc30f8aafb2ce51001cb8742a1.tar.xz
drakx-66a3628fe68440fc30f8aafb2ce51001cb8742a1.zip
handle {message_text} not set but /boot/message-text existing
-rw-r--r--perl-install/bootloader.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index e8f9db2e7..a2453cf90 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -1180,7 +1180,10 @@ sub install_lilo {
}
if ($bootloader->{message_text}) {
output("$::prefix/boot/message-text", $bootloader->{message_text});
- symlinkf "message-" . ($bootloader->{method} ne 'lilo-graphic' ? 'text' : 'graphic'), "$::prefix/boot/message";
+ }
+ my $message = "message-" . ($bootloader->{method} ne 'lilo-graphic' ? 'text' : 'graphic');
+ if (-r "$::prefix/boot/$message") {
+ symlinkf $message, "$::prefix/boot/message";
$bootloader->{message} = '/boot/message';
}