diff options
-rw-r--r-- | perl-install/partition_table/gpt.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/partition_table/gpt.pm b/perl-install/partition_table/gpt.pm index 170afc5ea..31f7ba855 100644 --- a/perl-install/partition_table/gpt.pm +++ b/perl-install/partition_table/gpt.pm @@ -155,7 +155,8 @@ sub initialize { my ($class, $hd) = @_; my @raw; for (my $part_number = 0; $part_number < $nb_primary-1; $part_number++) { - $raw[$part_number] = { part_number => $part_number }; + # part_number starts at 1 + $raw[$part_number] = { part_number => $part_number + 1}; } $hd->{primary} = { raw => \@raw }; bless $hd, $class; |