summaryrefslogtreecommitdiffstats
path: root/autopart.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-06-20 05:05:43 +0000
committerMatt Wilson <msw@redhat.com>2001-06-20 05:05:43 +0000
commita8c13fa4b1c43a383f5e880d057e22fc2ac5920e (patch)
treebf8245a8416dc559fa7911ded5673485910b88cd /autopart.py
parent1161d410af4cfd34e77b63e8ac52b0c20b53d955 (diff)
downloadanaconda-a8c13fa4b1c43a383f5e880d057e22fc2ac5920e.tar.gz
anaconda-a8c13fa4b1c43a383f5e880d057e22fc2ac5920e.tar.xz
anaconda-a8c13fa4b1c43a383f5e880d057e22fc2ac5920e.zip
get final branch copies
Diffstat (limited to 'autopart.py')
-rw-r--r--autopart.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/autopart.py b/autopart.py
index 471801556..00e254143 100644
--- a/autopart.py
+++ b/autopart.py
@@ -159,7 +159,6 @@ def fitSized(diskset, requests):
ret = bestPartType(disk)
if ret == PARTITION_FAIL:
return ret
- print ret
if ret == parted.PARTITION_PRIMARY:
partType = parted.PARTITION_PRIMARY
elif ret == parted.PARTITION_EXTENDED:
@@ -291,7 +290,11 @@ def processPartitioning(diskset, requests):
for request in requests.requests:
if request.type == REQUEST_NEW:
request.device = None
-# request.requestSize = request.size
+
+ # set the unique identifier for raid devices
+ if request.type == REQUEST_RAID and not request.device:
+ request.device = requests.maxcontainer
+ requests.maxcontainer = requests.maxcontainer + 1
# XXX - handle delete requests
for delete in requests.deletes: