summaryrefslogtreecommitdiffstats
path: root/textw/partition_text.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-07-04 01:26:59 +0000
committerJeremy Katz <katzj@redhat.com>2001-07-04 01:26:59 +0000
commit4814536cb4a3b5e385cc7904ac1f4853f7cc1f82 (patch)
treeeb89ef80c173a200e1e5f054ec0415baca7231c1 /textw/partition_text.py
parent80aeb81504ff08479288702aa3693cba88d30131 (diff)
downloadanaconda-4814536cb4a3b5e385cc7904ac1f4853f7cc1f82.tar.gz
anaconda-4814536cb4a3b5e385cc7904ac1f4853f7cc1f82.tar.xz
anaconda-4814536cb4a3b5e385cc7904ac1f4853f7cc1f82.zip
Move the partitioning bits into Partitions object. The diskset should probably
go in here at some point, and arguably the fsset as well, but that should be able to be done without major upheaval. Major changes to note: * id.partitions created * PartitionRequest object folded into Partitions * all of the various autopartitioning variables folded into Partitions * avoid passing just instdata as much as possible other minor fixes which are slipping into this commit * /usr for server install size to 800 megs... 512 is too small :( * kickstart bootloader fix * fix a couple places to use convenience functions instead of part.geom.disk.dev.path * set self.intf for gui autopartitioning so message window works
Diffstat (limited to 'textw/partition_text.py')
-rw-r--r--textw/partition_text.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/textw/partition_text.py b/textw/partition_text.py
index ea85b2efe..b00074763 100644
--- a/textw/partition_text.py
+++ b/textw/partition_text.py
@@ -740,8 +740,8 @@ class AutoPartitionWindow:
flag = FLAGS_SET
# XXX need a way to disable the checkbox tree
- def __call__(self, screen, id, diskset, intf):
- if not id.useAutopartitioning:
+ def __call__(self, screen, diskset, partitions, intf):
+ if not partitions.useAutopartitioning:
return INSTALL_NOOP
self.g = GridFormHelp(screen, _("Autopartitioning"), "autopartitioning", 1, 6)
@@ -751,9 +751,9 @@ class AutoPartitionWindow:
typebox.append(_("Remove all Linux partitions"), CLEARPART_TYPE_LINUX)
typebox.append(_("Remove all partitions"), CLEARPART_TYPE_ALL)
typebox.append(_("Remove no partitions"), CLEARPART_TYPE_NONE)
- if id.autoClearPartType == CLEARPART_TYPE_LINUX:
+ if partitions.autoClearPartType == CLEARPART_TYPE_LINUX:
typebox.setCurrent(CLEARPART_TYPE_LINUX)
- elif id.autoClearPartType == CLEARPART_TYPE_ALL:
+ elif partitions.autoClearPartType == CLEARPART_TYPE_ALL:
typebox.setCurrent(CLEARPART_TYPE_ALL)
else:
typebox.setCurrent(CLEARPART_TYPE_NONE)
@@ -763,9 +763,9 @@ class AutoPartitionWindow:
# list of drives to select which to clear
subgrid = Grid(1, 2)
driveLbl = Label(_("Clear Partitions on These Drives:"))
- cleardrives = id.autoClearPartDrives
+ cleardrives = partitions.autoClearPartDrives
subgrid.setField(driveLbl, 0, 0)
- disks = id.diskset.disks.keys()
+ disks = diskset.disks.keys()
drivelist = CheckboxTree(height=3, scroll=1)
if not cleardrives or len(cleardrives) < 1:
for disk in disks:
@@ -792,6 +792,6 @@ class AutoPartitionWindow:
if res == TEXT_BACK_CHECK:
return INSTALL_BACK
- id.autoClearPartType = typebox.current()
- id.autoClearPartDrives = drivelist.getSelection()
+ partitions.autoClearPartType = typebox.current()
+ partitions.autoClearPartDrives = drivelist.getSelection()
return INSTALL_OK