summaryrefslogtreecommitdiffstats
path: root/installclass.py
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2009-11-23 13:47:41 -0500
committerPeter Jones <pjones@redhat.com>2009-11-23 14:07:07 -0500
commit8c24c48663851eedc2a2328641f9fdea8fcee94a (patch)
tree1942e6fbebdb5d2b4eade185eaab7214bcb85c2b /installclass.py
parent884dbbf630dcfdd6f4466d249666f55d7a1e9670 (diff)
downloadanaconda-8c24c48663851eedc2a2328641f9fdea8fcee94a.tar.gz
anaconda-8c24c48663851eedc2a2328641f9fdea8fcee94a.tar.xz
anaconda-8c24c48663851eedc2a2328641f9fdea8fcee94a.zip
Use installclass to make the bootloader timeout 5 seconds on RHEL.
In RHEL, we want the old bootloader timeout behavior, so people see output on the teletype and have time to frob some switches on the front panel. But for those of us in modern environments, we don't want to do that, so this patch uses installclass to choose which one you get.
Diffstat (limited to 'installclass.py')
-rw-r--r--installclass.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/installclass.py b/installclass.py
index 1e1d9b86d..03902c835 100644
--- a/installclass.py
+++ b/installclass.py
@@ -55,6 +55,7 @@ class BaseInstallClass(object):
pkgstext = ""
# default to showing the upgrade option
showUpgrade = True
+ bootloaderTimeoutDefault = 0
bugFiler = AbstractFiler(product.bugUrl, product.bugUrl,
product.productVersion, product.productName)
@@ -195,8 +196,9 @@ class BaseInstallClass(object):
def setInstallData(self, anaconda):
- anaconda.id.reset()
- anaconda.id.instClass = self
+ anaconda.id.reset()
+ anaconda.id.instClass = self
+ anaconda.id.bootloader.timeout = self.bootloaderTimeoutDefault
def versionMatches(self, oldver):
pass