summaryrefslogtreecommitdiffstats
path: root/installclass.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2000-05-03 19:52:54 +0000
committerMike Fulbright <msf@redhat.com>2000-05-03 19:52:54 +0000
commitcaf4b4ca3cfd18ab5716dd707974f8226262a33d (patch)
tree6ee11941b2cbc854f3629aad802a07bb5b841653 /installclass.py
parente2dff0b66a53f29bb5a11ecc349129ac72d32972 (diff)
downloadanaconda-caf4b4ca3cfd18ab5716dd707974f8226262a33d.tar.gz
anaconda-caf4b4ca3cfd18ab5716dd707974f8226262a33d.tar.xz
anaconda-caf4b4ca3cfd18ab5716dd707974f8226262a33d.zip
made partition options tuple more managable
Diffstat (limited to 'installclass.py')
-rw-r--r--installclass.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/installclass.py b/installclass.py
index dd7e5b3ad..a2bc92c6a 100644
--- a/installclass.py
+++ b/installclass.py
@@ -50,8 +50,7 @@ class BaseInstallClass:
[ 0, 1, 5 ].index(level)
for device in devices:
found = 0
- for (otherMountPoint, size, maxSize, grow, forceDevice) in \
- self.partitions:
+ for (otherMountPoint, sizespc, locspc, fsopts) in self.partitions:
if otherMountPoint == device:
found = 1
if not found:
@@ -67,14 +66,18 @@ class BaseInstallClass:
self.raidList.append(mntPoint, raidDev, level, devices)
- def addNewPartition(self, mntPoint, size, maxSize, grow, device, fsopts=None):
- if not device: device = ""
-
+ def addNewPartition(self, mntPoint, sizespec, locspec, typespec, fsopts=None):
+ device = locspec
+
+ if not device:
+ device = ""
+
if mntPoint[0] != '/' and mntPoint != 'swap' and \
mntPoint[0:5] != "raid.":
raise TypeError, "bad mount point for partitioning: %s" % \
(mntPoint,)
- self.partitions.append((mntPoint, size, maxSize, grow, device, fsopts))
+
+ self.partitions.append((mntPoint, sizespec, (device),typespec, fsopts))
def addToFstab(self, mntpoint, dev, fstype = "ext2" , reformat = 1):
self.fstab.append((mntpoint, (dev, fstype, reformat)))