summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-08-20 22:17:13 +0000
committerMatt Wilson <msw@redhat.com>1999-08-20 22:17:13 +0000
commit72aaf76ec7eb86db06d57ff8ef48906bd4fdf7f4 (patch)
tree2d5eb5e5f09e39da497f73376c884c1d16953042
parent74601ba3e645cfe9ed3812b64b18eb7821dc0df9 (diff)
downloadanaconda-72aaf76ec7eb86db06d57ff8ef48906bd4fdf7f4.tar.gz
anaconda-72aaf76ec7eb86db06d57ff8ef48906bd4fdf7f4.tar.xz
anaconda-72aaf76ec7eb86db06d57ff8ef48906bd4fdf7f4.zip
more changes for lilo
-rw-r--r--todo.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/todo.py b/todo.py
index 9194650e0..1fe84eeb5 100644
--- a/todo.py
+++ b/todo.py
@@ -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")