summaryrefslogtreecommitdiffstats
path: root/perl-install/bootloader.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-11-06 17:38:26 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-11-06 17:38:26 +0000
commitb8a25c88bba7e597dd0c148e15693672d2a30f85 (patch)
tree9c4922a45aa7ae98e414169afa898e4b19593a13 /perl-install/bootloader.pm
parent922d528b7664b8b885f596055bd25232f3df32a7 (diff)
downloaddrakx-b8a25c88bba7e597dd0c148e15693672d2a30f85.tar
drakx-b8a25c88bba7e597dd0c148e15693672d2a30f85.tar.gz
drakx-b8a25c88bba7e597dd0c148e15693672d2a30f85.tar.bz2
drakx-b8a25c88bba7e597dd0c148e15693672d2a30f85.tar.xz
drakx-b8a25c88bba7e597dd0c148e15693672d2a30f85.zip
replace complex "unless"s with "if"s
Diffstat (limited to 'perl-install/bootloader.pm')
-rw-r--r--perl-install/bootloader.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index bd506f210..86d370856 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -1041,8 +1041,8 @@ sub install_loadlin {
my $boot;
($boot) = grep { $lilo->{boot} eq "/dev/$_->{device}" } @$fstab;
- ($boot) = grep { loopback::carryRootLoopback($_) } @$fstab unless $boot && $boot->{device_windobe};
- ($boot) = grep { isFat($_) } @$fstab unless $boot && $boot->{device_windobe};
+ ($boot) = grep { loopback::carryRootLoopback($_) } @$fstab if !$boot || !$boot->{device_windobe};
+ ($boot) = grep { isFat($_) } @$fstab if !$boot || !$boot->{device_windobe};
log::l("loadlin device is $boot->{device} (windobe $boot->{device_windobe})");
$lilo->{boot_drive} = $boot->{device_windobe};