from installclass import BaseInstallClass from translate import * from installclass import FSEDIT_CLEAR_ALL import os class InstallClass(BaseInstallClass): name = N_('Install Server System') 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("package-selection") self.addToSkipList("authentication") self.setMakeBootdisk(1) if os.uname ()[4] != 'sparc64': self.addNewPartition('/boot', 16, -1, 0, None) self.addNewPartition('/', 256, -1, 0, None) self.addNewPartition('/usr', 512, -1, 1, None) self.addNewPartition('/var', 256, -1, 0, None) self.addNewPartition('/home', 512, -1, 1, None) self.addNewPartition('swap', 64, 256, 1, None) self.setClearParts(FSEDIT_CLEAR_ALL, warningText = N_("You are about to erase ALL DATA on your hard " "drive to make room for your Linux installation."))