summaryrefslogtreecommitdiffstats
path: root/installclass.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-02-25 21:58:25 +0000
committerJeremy Katz <katzj@redhat.com>2003-02-25 21:58:25 +0000
commit4cc5434c8f9ba9b3c9987f2f8516744466db43f9 (patch)
treeac543363ee74efb44e3ae9c17c87abcc05ea4216 /installclass.py
parent9fa8bdfcc6a7c4897a7fa47839215a2f12b41c22 (diff)
downloadanaconda-4cc5434c8f9ba9b3c9987f2f8516744466db43f9.tar.gz
anaconda-4cc5434c8f9ba9b3c9987f2f8516744466db43f9.tar.xz
anaconda-4cc5434c8f9ba9b3c9987f2f8516744466db43f9.zip
bios drive order from kickstart (#80086)
Diffstat (limited to 'installclass.py')
-rw-r--r--installclass.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/installclass.py b/installclass.py
index 35051c845..b1111098b 100644
--- a/installclass.py
+++ b/installclass.py
@@ -52,7 +52,7 @@ class BaseInstallClass:
def setBootloader(self, id, useLilo=0, location=None, linear=1,
forceLBA=0, password=None, md5pass=None,
- appendLine=""):
+ appendLine="", driveorder = []):
if useLilo:
id.bootloader.useGrubVal = 0
if appendLine:
@@ -67,6 +67,18 @@ class BaseInstallClass:
id.bootloader.defaultDevice = location
else:
id.bootloader.defaultDevice = -1
+
+ # XXX throw out drives specified that don't exist. anything else
+ # seems silly
+ if driveorder and len(driveorder) > 0:
+ new = []
+ for drive in driveorder:
+ if drive in id.bootloader.drivelist:
+ new.append(drive)
+ else:
+ log("requested drive %s in boot drive order doesn't "
+ "exist" %(drive,))
+ id.bootloader.drivelist = new
def setClearParts(self, id, clear, drives = None, warningText = None,
initAll = 0):