From 7e854d297a8d033bacae45e61fe53a5afd0c7eaf Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Thu, 16 Apr 2015 21:50:26 +0000 Subject: use the windows partition with the most available space --- perl-install/fs/partitioning_wizard.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/fs') diff --git a/perl-install/fs/partitioning_wizard.pm b/perl-install/fs/partitioning_wizard.pm index bbe3ccf8e..3cfa80148 100644 --- a/perl-install/fs/partitioning_wizard.pm +++ b/perl-install/fs/partitioning_wizard.pm @@ -178,7 +178,7 @@ sub partitionWizardSolutions { }, \&partition_table::description, \@ok_for_resize_fat) or return; $part->{size} > $part->{min_linux} + $part->{min_win} or die N("Your Microsoft Windows® partition is too fragmented. Please reboot your computer under Microsoft Windows®, run the ``defrag'' utility, then restart the %s installation.", N("Mageia")); } else { - $part = top(grep { $_->{req_size} } @ok_for_resize_fat); + $part = top(grep { $_->{size} - $_->{req_size} } @ok_for_resize_fat); } my $resize_fat = $part->{resize_fat}; my $hd = fs::get::part2hd($part, $all_hds); -- cgit v1.2.1