diff options
author | Jeremy Katz <katzj@redhat.com> | 2005-09-16 21:29:58 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2005-09-16 21:29:58 +0000 |
commit | ceeb4dade40474aa96579c852bb118fb12dc32c5 (patch) | |
tree | c121d2b085593505e7e45e695247a0aa42a0af2f /installclasses | |
parent | 10f211fb9f37aff25d1dc592c9796cd9fe8e179e (diff) | |
download | anaconda-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')
-rw-r--r-- | installclasses/custom.py | 1 | ||||
-rw-r--r-- | installclasses/fedora.py | 34 | ||||
-rw-r--r-- | installclasses/personal_desktop.py | 1 | ||||
-rw-r--r-- | installclasses/server.py | 1 | ||||
-rw-r--r-- | installclasses/workstation.py | 1 |
5 files changed, 38 insertions, 0 deletions
diff --git a/installclasses/custom.py b/installclasses/custom.py index 6f015149d..7b49cdef2 100644 --- a/installclasses/custom.py +++ b/installclasses/custom.py @@ -16,6 +16,7 @@ class InstallClass(BaseInstallClass): sortPriority = 10000 showLoginChoice = 1 showMinimal = 1 + hidden = 1 def setInstallData(self, id): BaseInstallClass.setInstallData(self, id) 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) diff --git a/installclasses/personal_desktop.py b/installclasses/personal_desktop.py index 7b0e935ba..b5be75563 100644 --- a/installclasses/personal_desktop.py +++ b/installclasses/personal_desktop.py @@ -26,6 +26,7 @@ class InstallClass(BaseInstallClass): showLoginChoice = 0 sortPriority = 1 + hidden = 1 def setSteps(self, dispatch): BaseInstallClass.setSteps(self, dispatch); diff --git a/installclasses/server.py b/installclasses/server.py index 1dc09b10d..1ca9b73db 100644 --- a/installclasses/server.py +++ b/installclasses/server.py @@ -18,6 +18,7 @@ class InstallClass(BaseInstallClass): sortPriority = 10 showLoginChoice = 1 + hidden = 1 def setSteps(self, dispatch): BaseInstallClass.setSteps(self, dispatch); diff --git a/installclasses/workstation.py b/installclasses/workstation.py index f93c87108..dcc848b12 100644 --- a/installclasses/workstation.py +++ b/installclasses/workstation.py @@ -24,6 +24,7 @@ class InstallClass(personal_desktop.InstallClass): sortPriority = 2 showLoginChoice = 0 + hidden = 1 def setGroupSelection(self, grpset, intf): personal_desktop.InstallClass.setGroupSelection(self, grpset, intf) |