diff options
author | Jeremy Katz <katzj@redhat.com> | 2003-06-23 19:02:38 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2003-06-23 19:02:38 +0000 |
commit | c8c0190205336f69c1a94f890a28a3e040565a97 (patch) | |
tree | e14cbf45307c02955d4e358dfb7e584026346953 /installclass.py | |
parent | d1636e475e29facfa7c08db38d4845a9bfe682e7 (diff) | |
download | anaconda-c8c0190205336f69c1a94f890a28a3e040565a97.tar.gz anaconda-c8c0190205336f69c1a94f890a28a3e040565a97.tar.xz anaconda-c8c0190205336f69c1a94f890a28a3e040565a97.zip |
merge from taroon. highlights of this time around
* ppc boot constraints
* md5 endianness
* don't prompt to save tracebacks to a floppy without a floppy
* autopart for kickstart
* network configuration in the loader if vnc/display case
Diffstat (limited to 'installclass.py')
-rw-r--r-- | installclass.py | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/installclass.py b/installclass.py index 57a632e1d..1d60e2352 100644 --- a/installclass.py +++ b/installclass.py @@ -20,6 +20,7 @@ import language from instdata import InstallData from partitioning import * +from autopart import getAutopartitionBoot, autoCreatePartitionRequests from rhpl.log import log from rhpl.translate import _, N_ @@ -33,6 +34,7 @@ class BaseInstallClass: showMinimal = 1 showLoginChoice = 0 description = None + name = "base" # don't select this class by default default = 0 @@ -460,7 +462,23 @@ class BaseInstallClass: mouseName = mouse.mouseToMouse()[mouseType] mouse.set(mouseName, emulThree, device) id.setMouse(mouse) - + + def setDefaultPartitioning(self, partitions, clear = CLEARPART_TYPE_LINUX, + doClear = 1): + autorequests = [ ("/", None, 1024, None, 1, 1) ] + + bootreq = getAutopartitionBoot() + if bootreq: + autorequests.extend(bootreq) + + (minswap, maxswap) = iutil.swapSuggestion() + autorequests.append((None, "swap", minswap, maxswap, 1, 1)) + + if doClear: + partitions.autoClearPartType = clear + partitions.autoClearPartDrives = [] + partitions.autoPartitionRequests = autoCreatePartitionRequests(autorequests) + def setInstallData(self, id): id.reset() |