From ec943bda7b15ac69dc85cb04865e09e6b21f7177 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Tue, 3 Feb 2015 22:43:25 +0000 Subject: Fix partition number in GPT for empty disks --- perl-install/partition_table/gpt.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'perl-install/partition_table') 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; -- cgit v1.2.1