[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH rhel5] More robust filtering of physical volumes in autopartioning (#475271)
- From: Radek Vykydal <rvykydal redhat com>
- To: anaconda-devel-list redhat com
- Subject: [PATCH rhel5] More robust filtering of physical volumes in autopartioning (#475271)
- Date: Tue, 24 Feb 2009 11:10:24 +0100
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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]