From 18ccf4ee73dd3df647d9ba8d2659abd33e145114 Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Fri, 19 Oct 2007 18:59:48 +0000 Subject: Pass the bootloader --timeout= parameter from pykickstart along to booty. --- installclass.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'installclass.py') 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: -- cgit