diff options
author | Erik Troan <ewt@redhat.com> | 2001-06-20 01:46:34 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2001-06-20 01:46:34 +0000 |
commit | d2b85ad932ca315f00ca72527e87ea9a059f74e6 (patch) | |
tree | 3bc31ce8d092457372b4cd1b1bad60b45dad0b32 /installclasses/server.py | |
parent | 1a690b55258ae286bee27e4d1db22c527862837b (diff) | |
download | anaconda-d2b85ad932ca315f00ca72527e87ea9a059f74e6.tar.gz anaconda-d2b85ad932ca315f00ca72527e87ea9a059f74e6.tar.xz anaconda-d2b85ad932ca315f00ca72527e87ea9a059f74e6.zip |
merge from (now defunct) dispatch branch
Diffstat (limited to 'installclasses/server.py')
-rw-r--r-- | installclasses/server.py | 59 |
1 files changed, 29 insertions, 30 deletions
diff --git a/installclasses/server.py b/installclasses/server.py index 49aa08b1a..c0411fe7f 100644 --- a/installclasses/server.py +++ b/installclasses/server.py @@ -10,37 +10,36 @@ class InstallClass(BaseInstallClass): pixmap = "server.png" sortPriority = 10 - def __init__(self, expert): - BaseInstallClass.__init__(self) - self.setGroups(["Server"]) - self.setHostname("localhost.localdomain") - if not expert: - self.addToSkipList("lilo") - self.addToSkipList("authentication") - self.setMakeBootdisk(1) - - self.showgroups = [ "KDE", - (0, "GNOME"), - (0, "X Window System"), + def setSteps(self, dispatch): + BaseInstallClass.setSteps(self, dispatch); + + if self.skipLilo: + dispatch.skipStep("bootloader") + dispatch.skipStep("authentication") + dispatch.skipStep("bootdisk", skip = 0) + + def setGroupSelection(self, comps): + BaseInstallClass.__init__(self, comps) + self.showGroups(comps, + [ "KDE", + ("GNOME", 0), + ("X Window System", 0), "News Server", "NFS Server", "Web Server", "SMB (Samba) Server", - "DNS Name Server" ] - - if os.uname ()[4] != 'sparc64': - self.addNewPartition('/boot', (48, -1, 0), (None, -1, 0), (0,0)) - self.addNewPartition('/', (256, -1, 0), (None, -1, 0), (0,0)) - self.addNewPartition('/usr', (512, -1, 1), (None, -1, 0), (0,0)) - self.addNewPartition('/var', (256, -1, 0), (None, -1, 0), (0,0)) - self.addNewPartition('/home',(512, -1, 1), (None, -1, 0), (0,0)) - self.setClearParts(FSEDIT_CLEAR_ALL, - warningText = N_("Automatic partitioning will erase ALL DATA on your hard " - "drive to make room for your Linux installation.")) - -# self.addNewPartition('swap', (64, 256, 1), (None, -1, 0), (0,0)) - - # 2.4 kernel requires more swap, so base amount we try to get - # on amount of memory - (minswap, maxswap) = iutil.swapSuggestion() - self.addNewPartition('swap', (minswap, maxswap, 1), (None, -1, 0), (0,0)) + "DNS Name Server" ]) + comps["Server"].select() + + def setInstallData(self, id): + BaseInstallClass.setInstallData(self, id) + self.setHostname(id, "localhost.localdomain") + + def __init__(self, expert): + BaseInstallClass.__init__(self, expert) + + if expert: + self.skipLilo = 1 + else: + self.skipLilo = 0 + |