1 |
gordonr |
1.1 |
from installclass import BaseInstallClass |
2 |
|
|
from rhpl.translate import * |
3 |
|
|
from constants import * |
4 |
|
|
import os |
5 |
|
|
import iutil |
6 |
|
|
|
7 |
|
|
class InstallClass(BaseInstallClass): |
8 |
|
|
|
9 |
|
|
# name has underscore used for mnemonics, strip if you dont need it |
10 |
|
|
id = "smeserver" |
11 |
|
|
name = N_("_SMEServer") |
12 |
|
|
pixmap = "smeserver.png" |
13 |
|
|
description = N_("SME Server.") |
14 |
|
|
|
15 |
|
|
sortPriority = 10 |
16 |
|
|
showLoginChoice = 1 |
17 |
|
|
|
18 |
|
|
# Maybe we should use upgradeclass.py as the template? |
19 |
|
|
|
20 |
|
|
def setSteps(self, dispatch): |
21 |
|
|
BaseInstallClass.setSteps(self, dispatch); |
22 |
|
|
dispatch.skipStep("authentication") |
23 |
|
|
dispatch.skipStep("partition") |
24 |
|
|
dispatch.skipStep("partitionmethod") |
25 |
|
|
dispatch.skipStep("partitionmethodsetup") |
26 |
|
|
dispatch.skipStep("fdisk") |
27 |
|
|
dispatch.skipStep("autopartition") |
28 |
|
|
dispatch.skipStep("zfcpconfig") |
29 |
|
|
dispatch.skipStep("bootloadersetup") |
30 |
|
|
dispatch.skipStep("bootloader") |
31 |
|
|
dispatch.skipStep("bootloaderadvanced") |
32 |
|
|
dispatch.skipStep("networkdevicecheck") |
33 |
|
|
# dispatch.skipStep("network") |
34 |
|
|
# dispatch.skipStep("languagesupport") |
35 |
|
|
dispatch.skipStep("authentication") |
36 |
|
|
dispatch.skipStep("desktopchoice", skip = 0) |
37 |
|
|
dispatch.skipStep("package-selection", skip = 1) |
38 |
|
|
dispatch.skipStep("accounts") |
39 |
|
|
dispatch.skipStep("firewall") |
40 |
|
|
# dispatch.skipStep("confirminstall") |
41 |
|
|
|
42 |
|
|
def setGroupSelection(self, grpset, intf): |
43 |
|
|
BaseInstallClass.__init__(self, grpset) |
44 |
|
|
|
45 |
|
|
grpset.unselectAll() |
46 |
|
|
grpset.selectGroup("base", asMeta = 1) |
47 |
|
|
|
48 |
|
|
def setInstallData(self, id): |
49 |
|
|
BaseInstallClass.setInstallData(self, id) |
50 |
|
|
BaseInstallClass.setDefaultPartitioning(self, id.partitions, |
51 |
|
|
CLEARPART_TYPE_ALL) |
52 |
|
|
|
53 |
|
|
def __init__(self, expert): |
54 |
|
|
BaseInstallClass.__init__(self, expert) |