summaryrefslogtreecommitdiffstats
path: root/lilo.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2001-02-09 21:39:32 +0000
committerErik Troan <ewt@redhat.com>2001-02-09 21:39:32 +0000
commite1e2dd054d2f0b8212e768d736031ecf5b423739 (patch)
tree393aaa10ac7e1152213dc0b787332250ae8fbc53 /lilo.py
parenta84e1bc82b7a93fa5473c56a79fa0e33db1a350a (diff)
downloadanaconda-e1e2dd054d2f0b8212e768d736031ecf5b423739.tar.gz
anaconda-e1e2dd054d2f0b8212e768d736031ecf5b423739.tar.xz
anaconda-e1e2dd054d2f0b8212e768d736031ecf5b423739.zip
set default append line
Diffstat (limited to 'lilo.py')
-rw-r--r--lilo.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/lilo.py b/lilo.py
index 62613cbc3..f4ae82b6e 100644
--- a/lilo.py
+++ b/lilo.py
@@ -474,11 +474,19 @@ class LiloConfiguration:
def getAppend(self):
return self.liloAppend
+ def setDefaultAppend(self):
+ cdrw = isys.ideCdRwList()
+ str = ""
+ for device in cdrw:
+ if str: str = str + " "
+ str = str + ("%s=ide-scsi" % device)
+
+ self.liloAppend = str
+
def __init__(self):
self.liloImages = {}
self.liloDevice = 'mbr'
self.liloLinear = 1
- self.liloAppend = None
self.default = None
self.initrdsMade = {}
# XXX only i386 supports edd, nothing else should
@@ -489,6 +497,8 @@ class LiloConfiguration:
else:
self.edd = 0
+ self.setDefaultAppend()
+
if __name__ == "__main__":
config = LiloConfigFile ()
config.read ('/etc/lilo.conf')