summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-07-06 05:16:12 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-07-06 05:16:12 +0000
commitdd14d019f7e3a18b6eb396d1ef25877ef4f0aa40 (patch)
treeb17f3823dc2b3c46c9132d9417860b295248231b /perl-install
parent3ebc20e3b7c3656d356b1775d6a4e176dfe1ae81 (diff)
downloaddrakx-dd14d019f7e3a18b6eb396d1ef25877ef4f0aa40.tar
drakx-dd14d019f7e3a18b6eb396d1ef25877ef4f0aa40.tar.gz
drakx-dd14d019f7e3a18b6eb396d1ef25877ef4f0aa40.tar.bz2
drakx-dd14d019f7e3a18b6eb396d1ef25877ef4f0aa40.tar.xz
drakx-dd14d019f7e3a18b6eb396d1ef25877ef4f0aa40.zip
cleanup
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/bootloader.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index 71a7268b2..1fd1b39a1 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -982,8 +982,7 @@ sub write_lilo {
push @entry_conf, "initrd=" . $file2fullname->($_->{initrd}) if $_->{initrd};
push @entry_conf, qq(append="$_->{append}") if $_->{append};
push @entry_conf, "vga=$_->{vga}" if $_->{vga};
- push @entry_conf, "read-write" if $_->{'read-write'};
- push @entry_conf, "read-only" if !$_->{'read-write'};
+ push @entry_conf, $_->{'read-write'} ? "read-write" : "read-only";
} else {
push @entry_conf, "table=$_->{table}" if $_->{table};
push @entry_conf, "unsafe" if $_->{unsafe} && !$_->{table};