summaryrefslogtreecommitdiffstats
path: root/perl-install/fs
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/fs')
-rw-r--r--perl-install/fs/any.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/fs/any.pm b/perl-install/fs/any.pm
index ce85c616a..5133cae2a 100644
--- a/perl-install/fs/any.pm
+++ b/perl-install/fs/any.pm
@@ -106,11 +106,11 @@ sub getNeededMinSpace {
}
sub getAvailableSpace {
- my ($fstab, $o_skip_mounted) = @_;
+ my ($fstab, $o_skip_mounted, $o_skip_min_space) = @_;
my $n = !$::testing && !$o_skip_mounted && getAvailableSpace_mounted($::prefix) ||
getAvailableSpace_raw($fstab) * 512 / 1.07;
- $n - getNeededMinSpace($n);
+ $o_skip_min_space ? $n : $n - getNeededMinSpace($n);
}
sub getAvailableSpace_mounted {