summaryrefslogtreecommitdiffstats
path: root/perl-install/partition_table.pm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2016-06-10 22:22:56 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-06-10 22:25:39 +0200
commit9891f350e692121f3661cc77f845e89ac4f0c79a (patch)
treea418fd8fdf1be2059f7358789fcf2af7b8eb4f39 /perl-install/partition_table.pm
parent9844b7fc29edb3bf5d9fe1d2880b46177b6316fb (diff)
downloaddrakx-9891f350e692121f3661cc77f845e89ac4f0c79a.tar
drakx-9891f350e692121f3661cc77f845e89ac4f0c79a.tar.gz
drakx-9891f350e692121f3661cc77f845e89ac4f0c79a.tar.bz2
drakx-9891f350e692121f3661cc77f845e89ac4f0c79a.tar.xz
drakx-9891f350e692121f3661cc77f845e89ac4f0c79a.zip
MBR limit really is 2TiB, not 4
so use GPT for disks > 2TiB, thus fixing using invalid MBR on disks between 2 & 4 TiB
Diffstat (limited to 'perl-install/partition_table.pm')
-rw-r--r--perl-install/partition_table.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/partition_table.pm b/perl-install/partition_table.pm
index 39c029899..08fa8ab25 100644
--- a/perl-install/partition_table.pm
+++ b/perl-install/partition_table.pm
@@ -222,8 +222,8 @@ sub get_normal_parts_and_holes {
sub _default_type {
my ($hd) = @_;
- # default to GPT on UEFI systems and disks > 4TB
- is_uefi() || $hd->{totalsectors} > 4 * 1024 * 1024 * 2048 ? 'gpt' : "dos";
+ # default to GPT on UEFI systems and disks > 2TB
+ is_uefi() || $hd->{totalsectors} > 2 * 1024 * 1024 * 2048 ? 'gpt' : "dos";
}
sub initialize {