summaryrefslogtreecommitdiffstats
path: root/perl-install/partition_table.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/partition_table.pm')
-rw-r--r--perl-install/partition_table.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/perl-install/partition_table.pm b/perl-install/partition_table.pm
index a9f20cd10..8ea4744bc 100644
--- a/perl-install/partition_table.pm
+++ b/perl-install/partition_table.pm
@@ -276,6 +276,11 @@ sub remove($$) {
%{$last->{extended}} = $_->{extended} ? %{$_->{extended}} : ();
splice(@{$hd->{extended}}, $i, 1);
+ unless (@{$hd->{extended}}) {
+ %{$hd->{primary}->{extended}} = ();
+ delete $hd->{primary}->{extended};
+ }
+
return $hd->{isDirty} = $hd->{needKernelReread} = 1;
}
$last = $_;