diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-01-24 22:03:36 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-01-24 22:03:36 +0000 |
commit | 163295099651a6aa71e8fbd5dfef4267242939d3 (patch) | |
tree | 0f23165959c3c3faaeba87dafd00c3675ad3d0f3 /autopart.py | |
parent | c827f3b84cbc3305eb23a9ddbd63d1fd06faaa8c (diff) | |
download | anaconda-163295099651a6aa71e8fbd5dfef4267242939d3.tar.gz anaconda-163295099651a6aa71e8fbd5dfef4267242939d3.tar.xz anaconda-163295099651a6aa71e8fbd5dfef4267242939d3.zip |
skeleton LVM code so that msf can start working on the real gui. doesn't
actually create the volumes or anything yet
Diffstat (limited to 'autopart.py')
-rw-r--r-- | autopart.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/autopart.py b/autopart.py index b91187708..d1f36732e 100644 --- a/autopart.py +++ b/autopart.py @@ -708,9 +708,14 @@ def processPartitioning(diskset, requests, newParts): if ret == PARTITION_FAIL: return (ret, _("Could not allocate partitions")) for request in requests.requests: - # set the unique identifier for raid devices + # set the unique identifier for raid and lvm devices if request.type == REQUEST_RAID and not request.device: request.device = str(request.uniqueID) + if request.type == REQUEST_VG and not request.device: + request.device = request.volumeGroupName + # anything better we can use for the logical volume? + if request.type == REQUEST_LV and not request.device: + request.device = str(request.uniqueID) if request.type == REQUEST_RAID: request.size = get_raid_device_size(request, requests, diskset) / 1024 / 1024 |