From 8e034f26d81087858a25b15c779c536887fc95a3 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Sun, 19 Apr 2015 22:55:57 +0000 Subject: hide empty space < 2MB, we have such holes due to alignment (mga#15733) --- perl-install/fs/partitioning_wizard.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'perl-install/fs/partitioning_wizard.pm') 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; -- cgit v1.2.1