diff options
author | Jeremy Katz <katzj@redhat.com> | 2004-07-07 23:31:21 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2004-07-07 23:31:21 +0000 |
commit | c939da85b91acc5d69d9dab36a1d2b52fd22de95 (patch) | |
tree | 2099887b215b222b8410b2d9877e4de3470ea1b7 /autopart.py | |
parent | 4dde08a03e7814063bce6686199118d67fe63759 (diff) | |
download | anaconda-c939da85b91acc5d69d9dab36a1d2b52fd22de95.tar.gz anaconda-c939da85b91acc5d69d9dab36a1d2b52fd22de95.tar.xz anaconda-c939da85b91acc5d69d9dab36a1d2b52fd22de95.zip |
don't reuse existing pvs on drives that we're not using for auto-partitioning
Diffstat (limited to 'autopart.py')
-rw-r--r-- | autopart.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/autopart.py b/autopart.py index e99d3ebcb..e1a6c735c 100644 --- a/autopart.py +++ b/autopart.py @@ -1352,7 +1352,18 @@ def doAutoPartition(dir, diskset, partitions, intf, instClass, dispatch): for r in partitions.requests: if isinstance(r.fstype, fsset.lvmPhysicalVolumeDummyFileSystem): - req.physicalVolumes.append(r.uniqueID) + valid = 0 + if ((partitions.autoClearPartDrives is None) or + len(partitions.autoClearPartDrives) == 0): + valid = 1 + else: + for d in r.drive: + if d in partitions.autoClearPartDrives: + valid = 1 + break + + if valid: + req.physicalVolumes.append(r.uniqueID) if (isinstance(req, partRequests.LogicalVolumeRequestSpec)): # if the volgroup is set to a string, we probably need # to find that volgroup and use it's id |