diff options
author | Matt Wilson <msw@redhat.com> | 2000-04-17 20:00:33 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2000-04-17 20:00:33 +0000 |
commit | 6f122a2794396f1777e3fe41bc98fda27e67ae44 (patch) | |
tree | 3074b305703c1f0170673657ae0e5834a1085f5a /milo.py | |
parent | 96040f2d2acfcc3052eefd2102227aabbaf70f6f (diff) | |
download | anaconda-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.py | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -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 (): |