From 282fc8ca5be92c7a8c99ae042e8ccfa7e75bfa17 Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Tue, 17 Jul 2001 22:33:36 +0000 Subject: use the bootloader code for lilo since it's all there... --- installclass.py | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'installclass.py') diff --git a/installclass.py b/installclass.py index 86221e102..a64a3dfbf 100644 --- a/installclass.py +++ b/installclass.py @@ -32,11 +32,14 @@ class BaseInstallClass: def postAction(self, rootPath, serial): pass - def setBootloader(self, id, useLilo = 0, location = None, forceLBA = 0, password = None, md5pass = None, appendLine = None): + def setBootloader(self, id, useLilo = 0, location = None, linear = 1, + forceLBA = 0, password = None, md5pass = None, + appendLine = None): if useLilo: id.bootloader.useGrubVal = 0 id.bootloader.args.set(appendLine) id.bootloader.setForceLBA(forceLBA) + id.bootloader.useLinear = linear if password: id.bootloader.setPassword(password, isCrypted = 0) if md5pass: @@ -46,16 +49,6 @@ class BaseInstallClass: else: id.bootloader.defaultDevice = -1 - - def setLiloInformation(self, id, location, linear = 1, forceLBA = 0, appendLine = None): - # this throws an exception if there is a problem - ["mbr", "partition", None].index(location) - - id.bootloader.useLinear = linear - id.bootloader.args.set(appendLine) - id.bootloader.useGrubVal = 0 - id.bootloader.setForceLBA(forceLBA) - def setClearParts(self, id, clear, drives = None, warningText = None, initAll = 0): id.partitions.autoClearPartType = clear -- cgit