summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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')