[PATCH] Only ignore partitions <1MB that are freespace. (#526445)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This originally came from bug 119479, which only complained of small
free space partitions created by partition magic. Small partitions still
will not be represented in the graph.
---
 iw/partition_gui.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/iw/partition_gui.py b/iw/partition_gui.py
index 4fc5e4f..9762041 100644
--- a/iw/partition_gui.py
+++ b/iw/partition_gui.py
@@ -1019,8 +1019,9 @@ class PartitionWindow(InstallWindow):
                     log.debug("can't find partition %s in device"
                                        " tree" % partName)
 
-                # ignore the tiny < 1 MB partitions (#119479)
-                if part.getSize(unit="MB") <= 1.0:
+                # ignore the tiny < 1 MB free space partitions (#119479)
+                if part.getSize(unit="MB") <= 1.0 and \
+                   part.type & parted.PARTITION_FREESPACE:
                     if not part.active or not device.bootable:
                         part = part.nextPartition()
                         continue
-- 
1.6.0.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux