summaryrefslogtreecommitdiffstats
path: root/perl-install/bootloader.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/bootloader.pm')
-rw-r--r--perl-install/bootloader.pm7
1 files changed, 3 insertions, 4 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index d1676af98..63751aee0 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -605,8 +605,8 @@ sub install_yaboot {
$lilo->{prompt} = $lilo->{timeout};
if ($lilo->{message}) {
- local *F;
- open F, ">$::prefix/boot/message" and print F $lilo->{message} or $lilo->{message} = 0;
+ eval { output("$::prefix/boot/message", $lilo->{message}) }
+ or $lilo->{message} = 0;
}
{
local $\ = "\n";
@@ -704,8 +704,7 @@ sub install_silo {
c::hasAliases() or log::l("clearing promvars alias as non supported"), $silo->{bootalias} = '';
if ($silo->{message}) {
- local *F;
- open F, ">$::prefix/boot/message" and print F $silo->{message} or $silo->{message} = 0;
+ eval { output("$::prefix/boot/message", $silo->{message}) } or $silo->{message} = 0;
}
{
local $\ = "\n";