diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2013-04-08 00:10:00 +0000 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2013-04-08 00:10:00 +0000 |
commit | c3fcc67ad75639c1f43081afd91f55f56861af66 (patch) | |
tree | f5d98bc62869dba4921877f2413cd960e496bb1c /install | |
parent | a1cdd17dfabce1af89ba7c53d28ca52ab9097f8e (diff) | |
download | live-c3fcc67ad75639c1f43081afd91f55f56861af66.tar.gz |
GPT is unsupported
Diffstat (limited to 'install')
-rwxr-xr-x | install | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -230,6 +230,7 @@ will be used.' have_partitions = len(hdd.partitions) > 0 have_solaris_partition = False + have_gpt = False buttons = [] if have_partitions: @@ -241,6 +242,8 @@ will be used.' n = n + 1 if p.id == 0xBF: have_solaris_partition = True + if p.id == 0xEE: + have_gpt = True part_info += '#{n:<2} {primary} {id:#04x} {system:25} {capacity:10}\n'.format( n=n, capacity=p.capacity, system=p.system, id=p.id, primary=['primary', 'logical'][p.logical]) @@ -250,7 +253,11 @@ will be used.' if have_solaris_partition: buttons.append(('Use this disk', 'ok')) - buttons.append(('Edit partitions', 'fdisk')) + if have_gpt: + part_info += '\nThis disk has GUID Partition Table (GPT) and is unsupported.\n' + # XXX gparted + else: + buttons.append(('Edit partitions', 'fdisk')) if number_of_disks > 1: buttons.append(('Back', 'another')) |