diff options
author | Jeremy Katz <katzj@redhat.com> | 2003-02-11 16:01:21 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2003-02-11 16:01:21 +0000 |
commit | 1f4f9539c206c23c76f7e358bb6456114d0b416b (patch) | |
tree | d10e9f3bdb418f551e354ec93e626af1945dc044 /autopart.py | |
parent | 3aaa690904e2ad84e138838047f5fd3e85fb1762 (diff) | |
download | anaconda-1f4f9539c206c23c76f7e358bb6456114d0b416b.tar.gz anaconda-1f4f9539c206c23c76f7e358bb6456114d0b416b.tar.xz anaconda-1f4f9539c206c23c76f7e358bb6456114d0b416b.zip |
we need to move the lvs to the new vg id if it changes due to kickstart
preexisting stuff
Diffstat (limited to 'autopart.py')
-rw-r--r-- | autopart.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/autopart.py b/autopart.py index 8ad5fcec2..70ef200ac 100644 --- a/autopart.py +++ b/autopart.py @@ -1222,6 +1222,7 @@ def doAutoPartition(dir, diskset, partitions, intf, instClass, dispatch): custom_icon='error') sys.exit(0) + oldid = None # now go through and set things from the request to the # preexisting partition's request... ladeda if request.physicalVolumes: @@ -1229,11 +1230,20 @@ def doAutoPartition(dir, diskset, partitions, intf, instClass, dispatch): if request.pesize: req.pesize = request.pesize if request.uniqueID: # for raid to work + oldid = req.uniqueID req.uniqueID = request.uniqueID if not request.format: req.format = 0 else: req.format = 1 + + # we also need to go through and remap everything which we + # previously found to our new id. yay! + if oldid is not None: + for lv in partitions.getLVMLVForVGID(oldid): + lv.volumeGroup = req.uniqueID + + elif (isinstance(request, partRequests.LogicalVolumeRequestSpec) and request.preexist == 1): # get the preexisting partition they want to use |