diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2002-11-06 22:52:57 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2002-11-06 22:52:57 +0000 |
commit | 8cb21146557a468e517db3123d481e5715971c7a (patch) | |
tree | 757b85c18f3a46f1ce331891e7f7aaf98a8b6702 /perl-install/bootloader.pm | |
parent | d3271db5a1609ee14b6f3a57aed7925644a5dabe (diff) | |
download | drakx-8cb21146557a468e517db3123d481e5715971c7a.tar drakx-8cb21146557a468e517db3123d481e5715971c7a.tar.gz drakx-8cb21146557a468e517db3123d481e5715971c7a.tar.bz2 drakx-8cb21146557a468e517db3123d481e5715971c7a.tar.xz drakx-8cb21146557a468e517db3123d481e5715971c7a.zip |
- have "local *FILEHANDLE" before each "open FILEHANDLE, ..."
- use some "cat_" and "output" where possible
Diffstat (limited to 'perl-install/bootloader.pm')
-rw-r--r-- | perl-install/bootloader.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm index 6e4651058..f6e24975c 100644 --- a/perl-install/bootloader.pm +++ b/perl-install/bootloader.pm @@ -602,9 +602,9 @@ sub install_yaboot { open F, ">$::prefix/boot/message" and print F $lilo->{message} or $lilo->{message} = 0; } { - local *F; local $\ = "\n"; my $f = "$::prefix/etc/yaboot.conf"; + local *F; open F, ">$f" or die "cannot create yaboot config file: $f"; log::l("writing yaboot config to $f"); @@ -701,10 +701,10 @@ sub install_silo { open F, ">$::prefix/boot/message" and print F $silo->{message} or $silo->{message} = 0; } { - local *F; local $\ = "\n"; my $f = "$::prefix/boot/silo.conf"; #- always write the silo.conf file in /boot ... symlinkf "../boot/silo.conf", "$::prefix/etc/silo.conf"; #- ... and make a symlink from /etc. + local *F; open F, ">$f" or die "cannot create silo config file: $f"; log::l("writing silo config to $f"); @@ -788,10 +788,10 @@ sub write_lilo_conf { } { - local *F; local $\ = "\n"; my $f = arch() =~ /ia64/ ? "$::prefix/boot/efi/elilo.conf" : "$::prefix/etc/lilo.conf"; + local *F; open F, ">$f" or die "cannot create lilo config file: $f"; log::l("writing lilo config to $f"); @@ -912,9 +912,9 @@ sub write_grub_config { dev2grub($part->{device}, \%dev2bios) . $file; }; { - local *F; local $\ = "\n"; my $f = "$::prefix/boot/grub/menu.lst"; + local *F; open F, ">$f" or die "cannot create grub config file: $f"; log::l("writing grub config to $f"); |