diff options
author | Matt Wilson <msw@redhat.com> | 1999-08-20 22:17:13 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 1999-08-20 22:17:13 +0000 |
commit | 72aaf76ec7eb86db06d57ff8ef48906bd4fdf7f4 (patch) | |
tree | 2d5eb5e5f09e39da497f73376c884c1d16953042 | |
parent | 74601ba3e645cfe9ed3812b64b18eb7821dc0df9 (diff) | |
download | anaconda-72aaf76ec7eb86db06d57ff8ef48906bd4fdf7f4.tar.gz anaconda-72aaf76ec7eb86db06d57ff8ef48906bd4fdf7f4.tar.xz anaconda-72aaf76ec7eb86db06d57ff8ef48906bd4fdf7f4.zip |
more changes for lilo
-rw-r--r-- | todo.py | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -543,7 +543,10 @@ class ToDo: raise ToDoError, "boot disk creation failed" def installLilo (self): - if not self.liloDevice: return + # on upgrade read in the lilo config file + if os.access (self.instPath + '/etc/lilo.conf', os.R_OK): + self.lilo.read (self.instPath + '/etc/lilo.conf') + elif not self.liloDevice: return kernelVersion = "%s-%s" % (self.kernelPackage[rpm.RPMTAG_VERSION], self.kernelPackage[rpm.RPMTAG_RELEASE]) @@ -551,7 +554,8 @@ class ToDo: self.makeInitrd () - self.lilo.addEntry("boot", '/dev/' + self.liloDevice) + if self.liloDevice: + self.lilo.addEntry("boot", '/dev/' + self.liloDevice) self.lilo.addEntry("map", "/boot/map") self.lilo.addEntry("install", "/boot/boot.b") self.lilo.addEntry("prompt") |