From caf4b4ca3cfd18ab5716dd707974f8226262a33d Mon Sep 17 00:00:00 2001 From: Mike Fulbright Date: Wed, 3 May 2000 19:52:54 +0000 Subject: made partition options tuple more managable --- installclass.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'installclass.py') 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))) -- cgit