summaryrefslogtreecommitdiffstats
path: root/todo.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-08-21 00:35:56 +0000
committerMatt Wilson <msw@redhat.com>1999-08-21 00:35:56 +0000
commit6406efe5cc1a7e3d09753297fa0ec6da26d3d7e2 (patch)
tree15ccdfc9400d3c7215a60a8ee07ff6264ba71383 /todo.py
parent0635c83068027dadac19cddabbbe31a16ee3aa8a (diff)
downloadanaconda-6406efe5cc1a7e3d09753297fa0ec6da26d3d7e2.tar.gz
anaconda-6406efe5cc1a7e3d09753297fa0ec6da26d3d7e2.tar.xz
anaconda-6406efe5cc1a7e3d09753297fa0ec6da26d3d7e2.zip
write lilo.conf _after_ we make the changes
Diffstat (limited to 'todo.py')
-rw-r--r--todo.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/todo.py b/todo.py
index e872a3484..052c22322 100644
--- a/todo.py
+++ b/todo.py
@@ -577,7 +577,6 @@ class ToDo:
kernelFile = "/boot/vmlinuz-" + kernelVersion
self.lilo.addImage ("image", kernelFile, sl)
- self.lilo.write(self.instPath + "/etc/lilo.conf")
for (type, name, config) in self.lilo.images:
# remove entries for missing kernels (upgrade)
@@ -592,6 +591,8 @@ class ToDo:
self.lilo.delImage (name)
os.remove ('/tmp/' + device)
+ self.lilo.write(self.instPath + "/etc/lilo.conf")
+
iutil.execWithRedirect(self.instPath + '/sbin/lilo' , [ "lilo",
"-r", self.instPath ], stdout = None)