diff options
author | Erik Troan <ewt@redhat.com> | 2001-02-09 21:39:32 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2001-02-09 21:39:32 +0000 |
commit | e1e2dd054d2f0b8212e768d736031ecf5b423739 (patch) | |
tree | 393aaa10ac7e1152213dc0b787332250ae8fbc53 /lilo.py | |
parent | a84e1bc82b7a93fa5473c56a79fa0e33db1a350a (diff) | |
download | anaconda-e1e2dd054d2f0b8212e768d736031ecf5b423739.tar.gz anaconda-e1e2dd054d2f0b8212e768d736031ecf5b423739.tar.xz anaconda-e1e2dd054d2f0b8212e768d736031ecf5b423739.zip |
set default append line
Diffstat (limited to 'lilo.py')
-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') |