[PATCH 37/47] Skip METADATA, FREESPACE, and PROTECTED partitions.

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

 



---
 partitions.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/partitions.py b/partitions.py
index 53c1480..cc57a2b 100644
--- a/partitions.py
+++ b/partitions.py
@@ -369,14 +369,14 @@ class Partitions:
             disk = diskset.disks[drive]
             part = disk.getFirstPartition()
             while part:
-                if part.type & parted.PARTITION_METADATA:
+                if (part.type & parted.PARTITION_METADATA) or \
+                   (part.type & parted.PARTITION_FREESPACE) or \
+                   (part.type & parted.PARTITION_PROTECTED):
                     part = part.nextPartition()
                     continue
 
                 format = None
-                if part.type & parted.PARTITION_FREESPACE:
-                    ptype = None
-                elif part.type & parted.PARTITION_EXTENDED:
+                if part.type & parted.PARTITION_EXTENDED:
                     ptype = None
                 elif part.getFlag(parted.PARTITION_RAID) == 1:
                     ptype = fsset.fileSystemTypeGet("software RAID")
-- 
1.6.1.3

_______________________________________________
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