summaryrefslogtreecommitdiffstats
path: root/perl-install/partition_table/gpt.pm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2016-07-27 17:20:33 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-07-31 17:30:41 +0200
commitfa5d71d34b1193fea0e290bb0586d0ff02747366 (patch)
treeac38499a7566aa7c49a8866773375657ba4fe652 /perl-install/partition_table/gpt.pm
parentc0529b4c5858300c0bd9c94fd35540e1f105dfd6 (diff)
downloaddrakx-fa5d71d34b1193fea0e290bb0586d0ff02747366.tar
drakx-fa5d71d34b1193fea0e290bb0586d0ff02747366.tar.gz
drakx-fa5d71d34b1193fea0e290bb0586d0ff02747366.tar.bz2
drakx-fa5d71d34b1193fea0e290bb0586d0ff02747366.tar.xz
drakx-fa5d71d34b1193fea0e290bb0586d0ff02747366.zip
first usable sector is LBA34 for GPT
same rationale as in commit 767048570e8c44061cb0d6faf689698d3313870c for mga#18666 this wasn't an issue as we later round partition on 1MB boundary but it's still cleaner/safer...
Diffstat (limited to 'perl-install/partition_table/gpt.pm')
-rw-r--r--perl-install/partition_table/gpt.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/perl-install/partition_table/gpt.pm b/perl-install/partition_table/gpt.pm
index 47cfa842e..3ac6673d6 100644
--- a/perl-install/partition_table/gpt.pm
+++ b/perl-install/partition_table/gpt.pm
@@ -14,6 +14,8 @@ my $nb_primary = 128;
# See https://en.wikipedia.org/wiki/GUID_Partition_Table#Partition_type_GUIDs for a list of exitings GUIDs
+sub first_usable_sector { 34 }
+
sub last_usable_sector {
my ($hd) = @_;
#- do not use totalsectors because backup GPT is at end