diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2005-08-16 06:26:35 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2005-08-16 06:26:35 +0000 |
commit | afcc3f3c046bfba57ac53d3367bbbad035c5136b (patch) | |
tree | 3dbd714f27b36678723ecb562405f2ea2e4f4176 /perl-install/install_any.pm | |
parent | 4a535fd84bf4f7d8164d5752da3fad78286fcc73 (diff) | |
download | drakx-afcc3f3c046bfba57ac53d3367bbbad035c5136b.tar drakx-afcc3f3c046bfba57ac53d3367bbbad035c5136b.tar.gz drakx-afcc3f3c046bfba57ac53d3367bbbad035c5136b.tar.bz2 drakx-afcc3f3c046bfba57ac53d3367bbbad035c5136b.tar.xz drakx-afcc3f3c046bfba57ac53d3367bbbad035c5136b.zip |
fix typo
Diffstat (limited to 'perl-install/install_any.pm')
-rw-r--r-- | perl-install/install_any.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm index 203d87058..ffabd64c3 100644 --- a/perl-install/install_any.pm +++ b/perl-install/install_any.pm @@ -1889,7 +1889,7 @@ sub write_fstab { } sub move_clp_to_disk { - my ($fstab) = @_; + my ($o) = @_; our $clp_on_disk; return if $clp_on_disk || $::local_install; @@ -1902,13 +1902,13 @@ sub move_clp_to_disk { if (availableRamMB() > 400) { $clp_dir = '/tmp'; #- on tmpfs } else { - my $tmp = fs::get::mntpoint2part('/tmp', $fstab); + my $tmp = fs::get::mntpoint2part('/tmp', $o->{fstab}); if ($tmp && fs::df($tmp, $::prefix) / 2 > $clp_size * 1.2) { #- we want at least 20% free afterwards $clp_dir = "$::prefix/tmp"; } else { - my $root = fs::get::mntpoint2part('/', $fstab); + my $root = fs::get::mntpoint2part('/', $o->{fstab}); my $root_free_MB = fs::df($root, $::prefix) / 2 / 1024; - my $wanted_size_MB = $o->{isUpgrade} || fs::get::mntpoint2part('/usr', $fstab) ? 150 : 300; + my $wanted_size_MB = $o->{isUpgrade} || fs::get::mntpoint2part('/usr', $o->{fstab}) ? 150 : 300; log::l("clp: root free $root_free_MB MB, wanted at least $wanted_size_MB MB"); if ($root_free_MB > $wanted_size_MB) { $clp_dir = $tmp ? $::prefix : "$::prefix/tmp"; |