summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@gmail.com>2015-04-16 21:55:56 +0000
committerPascal Terjan <pterjan@gmail.com>2015-04-16 21:55:56 +0000
commit03d2d56c4799fe2b9095e82206e228a9fb48f153 (patch)
tree95fad4d08fa2018b204caf1dde1257a881f6ee29
parent7e854d297a8d033bacae45e61fe53a5afd0c7eaf (diff)
downloaddrakx-03d2d56c4799fe2b9095e82206e228a9fb48f153.tar
drakx-03d2d56c4799fe2b9095e82206e228a9fb48f153.tar.gz
drakx-03d2d56c4799fe2b9095e82206e228a9fb48f153.tar.bz2
drakx-03d2d56c4799fe2b9095e82206e228a9fb48f153.tar.xz
drakx-03d2d56c4799fe2b9095e82206e228a9fb48f153.zip
suggest max (20G,20%) of the windows partition, previously max (6G,10%)
-rw-r--r--perl-install/NEWS2
-rw-r--r--perl-install/fs/partitioning_wizard.pm6
2 files changed, 5 insertions, 3 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index 44cf43030..e9259f2e2 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -1,6 +1,8 @@
- partitioning_wizard:
o use the windows partition with the most available space, not the one
where Windows will have most space left after resizing.
+ o suggest up to 20GB/20% of the windows partition (whichever is larger),
+ previously 6GB/10% (mga#15589)
Version 16.85 - 15 April 2015
diff --git a/perl-install/fs/partitioning_wizard.pm b/perl-install/fs/partitioning_wizard.pm
index 3cfa80148..df8688bef 100644
--- a/perl-install/fs/partitioning_wizard.pm
+++ b/perl-install/fs/partitioning_wizard.pm
@@ -153,12 +153,12 @@ sub partitionWizardSolutions {
$part->{min_win} = $min_win;
$part->{min_linux} = $min_linux_all;
#- try to keep at least 1GB free for Windows
- #- try to use from 6GB to 10% free space for Linux
+ #- try to use from 20GB to 20% free space for Linux
my $suggested_size = max(
$part->{min_win} + 1 * MB(1024),
min(
- $part->{size} - int(0.1 * ($part->{size} - $part->{min_win})),
- $part->{size} - 6 * MB(1024),
+ $part->{size} - int(0.2 * ($part->{size} - $part->{min_win})),
+ $part->{size} - 20 * MB(1024),
),
);
$part->{req_size} = max(min($suggested_size, $part->{size} - $part->{min_linux}), $part->{min_win});