diff options
-rw-r--r-- | lilo.py | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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') |