diff options
author | Pascal Terjan <pterjan@gmail.com> | 2015-04-19 22:55:57 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@gmail.com> | 2015-04-19 22:55:57 +0000 |
commit | 8e034f26d81087858a25b15c779c536887fc95a3 (patch) | |
tree | b2dc3a3849db777c58671042da65199785ff2f0d /perl-install/fs | |
parent | 1daabebda57976579465e5c281eaa14088e0e37f (diff) | |
download | drakx-8e034f26d81087858a25b15c779c536887fc95a3.tar drakx-8e034f26d81087858a25b15c779c536887fc95a3.tar.gz drakx-8e034f26d81087858a25b15c779c536887fc95a3.tar.bz2 drakx-8e034f26d81087858a25b15c779c536887fc95a3.tar.xz drakx-8e034f26d81087858a25b15c779c536887fc95a3.zip |
hide empty space < 2MB, we have such holes due to alignment (mga#15733)
Diffstat (limited to 'perl-install/fs')
-rw-r--r-- | perl-install/fs/partitioning_wizard.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/fs/partitioning_wizard.pm b/perl-install/fs/partitioning_wizard.pm index a30fa67d0..316e2f1b9 100644 --- a/perl-install/fs/partitioning_wizard.pm +++ b/perl-install/fs/partitioning_wizard.pm @@ -295,7 +295,9 @@ sub warn_reboot_needed { sub create_display_box { my ($kind, $resize, $fill_empty, $button) = @_; - my @parts = diskdrake::hd_gtk::kind2parts($kind); + # Hide empty space < 2MB, wehave such holes due to alignment + my @parts = grep { $_->{size} > MB(2) || !isEmpty($_) } diskdrake::hd_gtk::kind2parts($kind); + my $totalsectors = diskdrake::hd_gtk::kind2sectors($kind, @parts); my $width = 520; |