summaryrefslogtreecommitdiffstats
path: root/partitions.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2008-04-01 12:11:17 -0400
committerChris Lumens <clumens@redhat.com>2008-04-01 14:44:02 -0400
commitd2be49d9e8212c85afd20e4fe093fbe24c17f9bf (patch)
tree2a7321288838f8f1a80577bd1bb7ef1590dae113 /partitions.py
parentc2807be5ffa9f58c4a0fcac80e6c915d2a8cf19b (diff)
downloadanaconda-d2be49d9e8212c85afd20e4fe093fbe24c17f9bf.tar.gz
anaconda-d2be49d9e8212c85afd20e4fe093fbe24c17f9bf.tar.xz
anaconda-d2be49d9e8212c85afd20e4fe093fbe24c17f9bf.zip
Bootable requests can not be on logical volumes (#439270).
Diffstat (limited to 'partitions.py')
-rw-r--r--partitions.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/partitions.py b/partitions.py
index c4a606cfd..96b0cd9d4 100644
--- a/partitions.py
+++ b/partitions.py
@@ -834,7 +834,7 @@ class Partitions:
def getBaseReqs(reqs):
n = 0
- while not reduce(lambda x,y: x and (y.type != REQUEST_RAID),
+ while not reduce(lambda x,y: x and (y.type not in [REQUEST_RAID, REQUEST_LV]),
reqs, True) \
and len(reqs) > n:
req = reqs[n]
@@ -843,6 +843,9 @@ class Partitions:
reqs.append(self.getRequestByID(id))
del reqs[n]
continue
+ elif req.type == REQUEST_LV:
+ del reqs[n]
+ continue
n += 1
return reqs