diff options
author | Jeremy Katz <katzj@redhat.com> | 2001-07-04 01:26:59 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2001-07-04 01:26:59 +0000 |
commit | 4814536cb4a3b5e385cc7904ac1f4853f7cc1f82 (patch) | |
tree | eb89ef80c173a200e1e5f054ec0415baca7231c1 /installclasses | |
parent | 80aeb81504ff08479288702aa3693cba88d30131 (diff) | |
download | anaconda-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 'installclasses')
-rw-r--r-- | installclasses/custom.py | 6 | ||||
-rw-r--r-- | installclasses/server.py | 8 | ||||
-rw-r--r-- | installclasses/workstation.py | 6 |
3 files changed, 10 insertions, 10 deletions
diff --git a/installclasses/custom.py b/installclasses/custom.py index 3dc8b41a2..e19650c0a 100644 --- a/installclasses/custom.py +++ b/installclasses/custom.py @@ -23,9 +23,9 @@ class InstallClass(BaseInstallClass): (minswap, maxswap) = iutil.swapSuggestion() autorequests.append((None, "swap", minswap, maxswap, 1, 1)) - id.autoClearPartType = CLEARPART_TYPE_LINUX - id.autoClearPartDrives = [] - id.autoPartitionRequests = autoCreatePartitionRequests(autorequests) + id.partitions.autoClearPartType = CLEARPART_TYPE_LINUX + id.partitions.autoClearPartDrives = [] + id.partitions.autoPartitionRequests = autoCreatePartitionRequests(autorequests) def __init__(self, expert): BaseInstallClass.__init__(self, expert) diff --git a/installclasses/server.py b/installclasses/server.py index 48cd3201d..7f58f2e36 100644 --- a/installclasses/server.py +++ b/installclasses/server.py @@ -40,16 +40,16 @@ class InstallClass(BaseInstallClass): autorequests = [ ("/", None,256, None, 1, 1), ("/boot", None, 50, None, 0, 1), - ("/usr", None, 512, None, 0, 1), + ("/usr", None, 800, None, 0, 1), ("/var", None, 256, None, 0, 1), ("/home", None, 512, None, 1, 1) ] (minswap, maxswap) = iutil.swapSuggestion() autorequests.append((None, "swap", minswap, maxswap, 1, 1)) - id.autoClearPartType = CLEARPART_TYPE_ALL - id.autoClearPartDrives = [] - id.autoPartitionRequests = autoCreatePartitionRequests(autorequests) + id.partitions.autoClearPartType = CLEARPART_TYPE_ALL + id.partitions.autoClearPartDrives = [] + id.partitions.autoPartitionRequests = autoCreatePartitionRequests(autorequests) def __init__(self, expert): BaseInstallClass.__init__(self, expert) diff --git a/installclasses/workstation.py b/installclasses/workstation.py index 580bd151f..4c0bcd5eb 100644 --- a/installclasses/workstation.py +++ b/installclasses/workstation.py @@ -37,9 +37,9 @@ class InstallClass(BaseInstallClass): (minswap, maxswap) = iutil.swapSuggestion() autorequests.append((None, "swap", minswap, maxswap, 1, 1)) - id.autoClearPartType = CLEARPART_TYPE_LINUX - id.autoClearPartDrives = [] - id.autoPartitionRequests = autoCreatePartitionRequests(autorequests) + id.partitions.autoClearPartType = CLEARPART_TYPE_LINUX + id.partitions.autoClearPartDrives = None + id.partitions.autoPartitionRequests = autoCreatePartitionRequests(autorequests) def __init__(self, expert): BaseInstallClass.__init__(self, expert) |