summaryrefslogtreecommitdiffstats
path: root/installclass.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2007-10-19 18:59:48 +0000
committerChris Lumens <clumens@redhat.com>2007-10-19 18:59:48 +0000
commit18ccf4ee73dd3df647d9ba8d2659abd33e145114 (patch)
tree26e0dd07191911da43c3bff9fb4bb16f3580cd03 /installclass.py
parent61a96865ffce10e010f16553ff890142ffa4b796 (diff)
downloadanaconda-18ccf4ee73dd3df647d9ba8d2659abd33e145114.tar.gz
anaconda-18ccf4ee73dd3df647d9ba8d2659abd33e145114.tar.xz
anaconda-18ccf4ee73dd3df647d9ba8d2659abd33e145114.zip
Pass the bootloader --timeout= parameter from pykickstart along to booty.
Diffstat (limited to 'installclass.py')
-rw-r--r--installclass.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/installclass.py b/installclass.py
index e4be528b8..d2229e35d 100644
--- a/installclass.py
+++ b/installclass.py
@@ -85,19 +85,27 @@ class BaseInstallClass(object):
anaconda.method.postAction(anaconda)
def setBootloader(self, id, location=None, forceLBA=0, password=None,
- md5pass=None, appendLine="", driveorder = []):
+ md5pass=None, appendLine="", driveorder = [],
+ timeout=None):
if appendLine:
id.bootloader.args.set(appendLine)
+
id.bootloader.setForceLBA(forceLBA)
+
if password:
id.bootloader.setPassword(password, isCrypted = 0)
+
if md5pass:
id.bootloader.setPassword(md5pass)
+
if location != None:
id.bootloader.defaultDevice = location
else:
id.bootloader.defaultDevice = -1
+ if timeout:
+ id.bootloader.timeout = timeout
+
# XXX throw out drives specified that don't exist. anything else
# seems silly
if driveorder and len(driveorder) > 0: