[PATCH rhel5] More robust filtering of physical volumes in autopartioning (#475271)

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

 



Corner case of logical volume with fstype detected as "physical volume
(LVM)" caused traceback. Modified Chris Lumens' patch applied.
---
 autopart.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/autopart.py b/autopart.py
index 4c752a8..c07cafc 100644
--- a/autopart.py
+++ b/autopart.py
@@ -1411,13 +1411,14 @@ def doAutoPartition(anaconda):
                                 len(partitions.autoClearPartDrives) == 0):
                                 valid = 1
                             else:
-                                if not isinstance(r, partRequests.RaidRequestSpec):
+                                if (isinstance(r, partRequests.PartitionSpec) and
+                                    r.drive):
                                     for d in r.drive:
                                         if d in partitions.autoClearPartDrives:
                                             valid = 1
                                             break
 
-                            if not isinstance(r, partRequests.RaidRequestSpec):
+                            if isinstance(r, partRequests.PartitionSpec):
                                 if not r.multidrive:
                                     valid = 0
 
-- 
1.5.4.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