summaryrefslogtreecommitdiffstats
path: root/partedUtils.py
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2008-04-10 17:42:32 -0400
committerPeter Jones <pjones@pjones2.localdomain>2008-04-10 17:42:32 -0400
commitaa82c06cf63e1c13e039d6dd46c3a706e7e1cf4e (patch)
tree06f6e8f98195281bd785df0dc7cfa190c2e17d89 /partedUtils.py
parent10cdb4ab5726209adce4d38c6a3929865eb4d8f5 (diff)
downloadanaconda-aa82c06cf63e1c13e039d6dd46c3a706e7e1cf4e.tar.gz
anaconda-aa82c06cf63e1c13e039d6dd46c3a706e7e1cf4e.tar.xz
anaconda-aa82c06cf63e1c13e039d6dd46c3a706e7e1cf4e.zip
Don't treat tiny disks as EFI partitions, so we don't pick up our usb image.
Diffstat (limited to 'partedUtils.py')
-rw-r--r--partedUtils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/partedUtils.py b/partedUtils.py
index cc0f6ba19..bc0c10cad 100644
--- a/partedUtils.py
+++ b/partedUtils.py
@@ -312,7 +312,8 @@ def isEfiSystemPartition(part):
part.disk.type.name == "gpt" and
part.get_name() == "EFI System Partition" and
part.get_flag(parted.PARTITION_BOOT) == 1 and
- part.fs_type.name in ("fat16", "fat32"))
+ part.fs_type.name in ("fat16", "fat32") and
+ part.geom.length > 81920L) # require at least 40M before we care.
archLabels = {'i386': ['msdos', 'gpt'],
's390': ['dasd', 'msdos'],