summaryrefslogtreecommitdiffstats
path: root/installclasses/fedora.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2005-09-16 21:29:58 +0000
committerJeremy Katz <katzj@redhat.com>2005-09-16 21:29:58 +0000
commitceeb4dade40474aa96579c852bb118fb12dc32c5 (patch)
treec121d2b085593505e7e45e695247a0aa42a0af2f /installclasses/fedora.py
parent10f211fb9f37aff25d1dc592c9796cd9fe8e179e (diff)
downloadanaconda-ceeb4dade40474aa96579c852bb118fb12dc32c5.tar.gz
anaconda-ceeb4dade40474aa96579c852bb118fb12dc32c5.tar.xz
anaconda-ceeb4dade40474aa96579c852bb118fb12dc32c5.zip
2005-09-16 Jeremy Katz <katzj@redhat.com>
* anaconda (instClass): If there's only one visible installclass, don't ask about them either * installclasses/custom.py: Hide old install class. * installclasses/personal_desktop.py: Likewise. * installclasses/server.py: Likewise. * installclasses/workstation.py: Likewise. * installclasses/fedora.py: Add new Fedora install class.
Diffstat (limited to 'installclasses/fedora.py')
-rw-r--r--installclasses/fedora.py34
1 files changed, 34 insertions, 0 deletions
diff --git a/installclasses/fedora.py b/installclasses/fedora.py
new file mode 100644
index 000000000..420d40ba1
--- /dev/null
+++ b/installclasses/fedora.py
@@ -0,0 +1,34 @@
+from installclass import BaseInstallClass
+from rhpl.translate import N_
+from constants import *
+import os
+import iutil
+
+# custom installs are easy :-)
+class InstallClass(BaseInstallClass):
+ # name has underscore used for mnemonics, strip if you dont need it
+ id = "custom"
+ name = N_("_Fedora")
+ pixmap = "custom.png"
+ description = N_("Select this installation type to gain complete "
+ "control over the installation process, including "
+ "software package selection and partitioning.")
+ sortPriority = 10000
+ showLoginChoice = 1
+ showMinimal = 1
+
+ def setInstallData(self, id, intf = None):
+ BaseInstallClass.setInstallData(self, id)
+ BaseInstallClass.setDefaultPartitioning(self, id.partitions,
+ CLEARPART_TYPE_LINUX)
+
+ def setGroupSelection(self, backend):
+ backend.selectGroup("workstation-common")
+ backend.selectGroup("gnome-desktop")
+
+ def setSteps(self, dispatch):
+ BaseInstallClass.setSteps(self, dispatch);
+ dispatch.skipStep("partition")
+
+ def __init__(self, expert):
+ BaseInstallClass.__init__(self, expert)