summaryrefslogtreecommitdiffstats
path: root/installclass.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>1999-12-16 20:47:43 +0000
committerErik Troan <ewt@redhat.com>1999-12-16 20:47:43 +0000
commitceae8d6f0788e37a392d1c595259c5289b7202c5 (patch)
treebb8d7dbc774867687839ab6d3af071c2e21b1c68 /installclass.py
parentfd5264b5d48f69447b13053cd6e3f8244c2b48fe (diff)
downloadanaconda-ceae8d6f0788e37a392d1c595259c5289b7202c5.tar.gz
anaconda-ceae8d6f0788e37a392d1c595259c5289b7202c5.tar.xz
anaconda-ceae8d6f0788e37a392d1c595259c5289b7202c5.zip
expert mode enables lilo screens in workstation/server installs
Diffstat (limited to 'installclass.py')
-rw-r--r--installclass.py24
1 files changed, 13 insertions, 11 deletions
diff --git a/installclass.py b/installclass.py
index dedad6c13..654e2a3c7 100644
--- a/installclass.py
+++ b/installclass.py
@@ -217,22 +217,23 @@ class InstallClass:
# we need to be able to differentiate between this and custom
class DefaultInstall(InstallClass):
- def __init__(self):
+ def __init__(self, expert):
InstallClass.__init__(self)
# custom installs are easy :-)
class CustomInstall(InstallClass):
- def __init__(self):
+ def __init__(self, expert):
InstallClass.__init__(self)
# GNOME and KDE installs are derived from this
class Workstation(InstallClass):
- def __init__(self):
+ def __init__(self, expert):
InstallClass.__init__(self)
self.setHostname("localhost.localdomain")
- self.addToSkipList("lilo")
+ if not expert:
+ self.addToSkipList("lilo")
self.addToSkipList("authentication")
self.addToSkipList("partition")
self.addToSkipList("package-selection")
@@ -248,26 +249,27 @@ class Workstation(InstallClass):
class GNOMEWorkstation(Workstation):
- def __init__(self):
- Workstation.__init__(self)
+ def __init__(self, expert):
+ Workstation.__init__(self, expert)
self.desktop = "GNOME"
self.setGroups(["GNOME Workstation"])
self.addToSkipList("package-selection")
class KDEWorkstation(Workstation):
- def __init__(self):
- Workstation.__init__(self)
+ def __init__(self, expert):
+ Workstation.__init__(self, expert)
self.desktop = "KDE"
self.setGroups(["KDE Workstation"])
class Server(InstallClass):
- def __init__(self):
+ def __init__(self, expert):
InstallClass.__init__(self)
self.setGroups(["Server"])
self.setHostname("localhost.localdomain")
- self.addToSkipList("lilo")
+ if not expert:
+ self.addToSkipList("lilo")
self.addToSkipList("package-selection")
self.addToSkipList("authentication")
self.addToSkipList("partition")
@@ -287,7 +289,7 @@ class Server(InstallClass):
# reconfig machine w/o reinstall
class ReconfigStation(InstallClass):
- def __init__(self):
+ def __init__(self, expert):
InstallClass.__init__(self)
self.setHostname("localhost.localdomain")
self.addToSkipList("lilo")