summaryrefslogtreecommitdiffstats
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
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...
-rw-r--r--perl-install/NEWS2
-rw-r--r--perl-install/install/NEWS2
-rw-r--r--perl-install/partition_table/gpt.pm2
3 files changed, 6 insertions, 0 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index 932903c0b..c1182f8e1 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -1,3 +1,5 @@
+- diskdrake:
+ o first usable sector is LBA34 for GPT
- drakboot:
o fix .old backup for grub2's grub.cfg
- authentication: add support for sha256/sha512 and default to sha512
diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS
index 83e1e0380..3686461a8 100644
--- a/perl-install/install/NEWS
+++ b/perl-install/install/NEWS
@@ -1,5 +1,7 @@
- bootloader configuration:
o fix .old backup for grub2's grub.cfg
+- partionning:
+ o first usable sector is LBA34 for GPT
Version 17.52 - 17 July 2016
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