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.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/perl-install/partition_table.pm b/perl-install/partition_table.pm
index 3ebd47122..3f46e7ea7 100644
--- a/perl-install/partition_table.pm
+++ b/perl-install/partition_table.pm
@@ -286,6 +286,9 @@ sub add($$) {
raw_add($hd->{primary}->{raw}, $part);
@{$hd->{primary}->{normal}} = $part;
} else {
+ $hd->{primary}->{extended} && !verifyInside($part, $hd->{primary}->{extended})
+ and die "sorry, can't add outside the main extended partition";
+
foreach (@{$hd->{extended}}) {
$_->{normal} and next;
raw_add($_->{raw}, $part);