diff options
author | Peter Jones <pjones@redhat.com> | 2008-04-10 17:42:32 -0400 |
---|---|---|
committer | Peter Jones <pjones@pjones2.localdomain> | 2008-04-10 17:42:32 -0400 |
commit | aa82c06cf63e1c13e039d6dd46c3a706e7e1cf4e (patch) | |
tree | 06f6e8f98195281bd785df0dc7cfa190c2e17d89 /partedUtils.py | |
parent | 10cdb4ab5726209adce4d38c6a3929865eb4d8f5 (diff) | |
download | anaconda-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.py | 3 |
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'], |