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.pm9
1 files changed, 9 insertions, 0 deletions
diff --git a/perl-install/partition_table.pm b/perl-install/partition_table.pm
index ee67c5481..aa6912ab9 100644
--- a/perl-install/partition_table.pm
+++ b/perl-install/partition_table.pm
@@ -293,6 +293,15 @@ sub adjust_main_extended($) {
verifyParts($hd); #- verify everything is all right
}
+sub adjust_local_extended($$) {
+ my ($hd, $part) = @_;
+
+ foreach (@{$hd->{extended} || []}) {
+ $_->{normal} == $part or next;
+ $_->{size} = $part->{size} + $part->{start} - $_->{start};
+ last;
+ }
+}
sub get_normal_parts($) {
my ($hd) = @_;