summaryrefslogtreecommitdiffstats
path: root/milo.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-04-17 20:00:33 +0000
committerMatt Wilson <msw@redhat.com>2000-04-17 20:00:33 +0000
commit6f122a2794396f1777e3fe41bc98fda27e67ae44 (patch)
tree3074b305703c1f0170673657ae0e5834a1085f5a /milo.py
parent96040f2d2acfcc3052eefd2102227aabbaf70f6f (diff)
downloadanaconda-6f122a2794396f1777e3fe41bc98fda27e67ae44.tar.gz
anaconda-6f122a2794396f1777e3fe41bc98fda27e67ae44.tar.xz
anaconda-6f122a2794396f1777e3fe41bc98fda27e67ae44.zip
merge from anaconda-6-2j-branch
Diffstat (limited to 'milo.py')
-rw-r--r--milo.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/milo.py b/milo.py
index 3f4e0346b..3e890d905 100644
--- a/milo.py
+++ b/milo.py
@@ -106,13 +106,16 @@ class MiloInstall:
pass
os.symlink("../boot/milo.conf",
self.todo.instPath + "/etc/milo.conf")
+ if os.access (self.todo.instPath + "/boot/milo.conf", os.R_OK):
+ os.rename (self.todo.instPath + "/boot/milo.conf",
+ self.todo.instPath + "/boot/milo.conf.rpmsave")
else:
hasboot = 0
kernelroot = '/boot/'
+ if os.access (self.todo.instPath + "/etc/milo.conf", os.R_OK):
+ os.rename (self.todo.instPath + "/etc/milo.conf",
+ self.todo.instPath + "/etc/milo.conf.rpmsave")
- if os.access (self.todo.instPath + "/etc/milo.conf", os.R_OK):
- os.rename (self.todo.instPath + "/etc/milo.conf",
- self.todo.instPath + "/etc/milo.conf.rpmsave")
f = open (self.todo.instPath + "/etc/milo.conf", "w")
if hasboot:
f.write ("# NOTICE: You have a /boot partition. This means that all\n")
@@ -133,7 +136,8 @@ class MiloInstall:
for version, label in kernels:
f.write ("image=%svmlinuz-%s\n" % (kernelroot, version))
f.write ("\tlabel=%s\n" % label)
- f.write ("\troot=/dev/%s" % rootDevice)
+ f.write ("\troot=/dev/%s\n" % rootDevice)
+ f.close()
def write (self):
if onMILO ():