From d2be49d9e8212c85afd20e4fe093fbe24c17f9bf Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Tue, 1 Apr 2008 12:11:17 -0400 Subject: Bootable requests can not be on logical volumes (#439270). --- partitions.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'partitions.py') 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 -- cgit