From 8a254898555b429c8f22564cc4fa715ba6c0ade8 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Wed, 27 Jun 2012 13:27:05 +0200 Subject: [PATCH] partition tables using gpt instead of msdos with disks larger than 2TB --- source/steps/InstallPartitionDisks.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/steps/InstallPartitionDisks.py b/source/steps/InstallPartitionDisks.py index 5ca7507..ef99673 100644 --- a/source/steps/InstallPartitionDisks.py +++ b/source/steps/InstallPartitionDisks.py @@ -259,7 +259,11 @@ def single_partition_device_2_x ( device, vars, log): # get the device dev= parted.Device(device) # create a new partition table - disk= parted.freshDisk(dev,'msdos') + try: + disk= parted.freshDisk(dev,'msdos') + # use gpt as a fallback for disks larger than 2TB + except: + disk= parted.freshDisk(dev,'gpt') # create one big partition on each block device constraint= parted.constraint.Constraint (device=dev) geometry = parted.geometry.Geometry (device=dev, start=0, end=1) -- 2.43.0