X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=source%2Fsteps%2FInstallPartitionDisks.py;fp=source%2Fsteps%2FInstallPartitionDisks.py;h=ef9967305eb86df207d06c1782c953404eb12aae;hb=8a254898555b429c8f22564cc4fa715ba6c0ade8;hp=5ca7507696aa4c619b1ae2582b96df5c4829a2d5;hpb=ff986bd3b2882f23ce738d15ed18c53e23d02b9b;p=bootmanager.git 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)