summaryrefslogtreecommitdiffstats
path: root/lib/MDV/Draklive/Media.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/MDV/Draklive/Media.pm')
-rw-r--r--lib/MDV/Draklive/Media.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/MDV/Draklive/Media.pm b/lib/MDV/Draklive/Media.pm
index f86d01e..f950c88 100644
--- a/lib/MDV/Draklive/Media.pm
+++ b/lib/MDV/Draklive/Media.pm
@@ -73,9 +73,8 @@ sub find_boot_partition_index {
$media->find_partition_index('/boot') || $media->find_partition_index('/');
}
-sub supplement_partitions {
+sub supplement_slash_size {
my ($media, $total_size) = @_;
-
my $correction = 1.2;
my $slash = find { $_->{mntpoint} eq '/' } @{$media->{partitions}};
$slash->{size} ||= POSIX::ceil($total_size * $correction / $common::SECTORSIZE);