summaryrefslogtreecommitdiffstats
path: root/textw
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2006-11-17 19:15:46 +0000
committerChris Lumens <clumens@redhat.com>2006-11-17 19:15:46 +0000
commit29d386259e9725ed0f2b7b1e50d36f584a4d3393 (patch)
tree300629825ebc8dea9d5754d9ff32a003ba7da8ce /textw
parent7188627987f00f734e66b1357561072431ebc416 (diff)
downloadanaconda-29d386259e9725ed0f2b7b1e50d36f584a4d3393.tar.gz
anaconda-29d386259e9725ed0f2b7b1e50d36f584a4d3393.tar.xz
anaconda-29d386259e9725ed0f2b7b1e50d36f584a4d3393.zip
Set the RAID minor number on new RAID requests (#215231).
Diffstat (limited to 'textw')
-rw-r--r--textw/partition_text.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/textw/partition_text.py b/textw/partition_text.py
index d3b8a4bd8..d18744bc9 100644
--- a/textw/partition_text.py
+++ b/textw/partition_text.py
@@ -82,7 +82,7 @@ class PartitionWindow:
# next, add the raid partitions
- raidcounter = 0
+ self.raidcounter = 0
raidrequests = self.partitions.getRaidRequests()
if raidrequests:
for request in raidrequests:
@@ -99,14 +99,14 @@ class PartitionWindow:
try:
device = "/dev/md%d" % (request.raidminor,)
except:
- device = _("RAID Device %s" %(str(raidcounter)))
+ device = _("RAID Device %s" %(str(self.raidcounter)))
size = request.size
self.lb.append(["%s" %(device),
"", "", "%dM" %(size),
"%s" %(ptype), "%s" %(mount)], str(request.uniqueID),
[LEFT, RIGHT, RIGHT, RIGHT, LEFT, LEFT])
- raidcounter = raidcounter + 1
+ self.raidcounter += 1
# next, add the drives and partitions to the list
@@ -1084,6 +1084,7 @@ class PartitionWindow:
request.raidspares = int(spares.value())
request.raidlevel = raidtype.current()
+ request.raidminor = self.raidcounter
if format:
request.format = format.selected()