summaryrefslogtreecommitdiffstats
path: root/bootloader.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-08-01 21:28:56 +0000
committerJeremy Katz <katzj@redhat.com>2001-08-01 21:28:56 +0000
commit90239cf85182ec36c7c43651f7032a3110a0b8ce (patch)
treec102a1f8663537ff14c550822f749c9e8edbc884 /bootloader.py
parent96f0670390136acba7023c90811a95a1c622e715 (diff)
downloadanaconda-90239cf85182ec36c7c43651f7032a3110a0b8ce.tar.gz
anaconda-90239cf85182ec36c7c43651f7032a3110a0b8ce.tar.xz
anaconda-90239cf85182ec36c7c43651f7032a3110a0b8ce.zip
add a comment about not having to rerun grub, and fix permissions again (when did I lose that?)
Diffstat (limited to 'bootloader.py')
-rw-r--r--bootloader.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/bootloader.py b/bootloader.py
index 9237dae13..9ca3a20d2 100644
--- a/bootloader.py
+++ b/bootloader.py
@@ -392,6 +392,11 @@ class x86BootloaderInfo(bootloaderInfo):
f = open(instRoot + cf, "w+")
+ f.write("# grub.conf generated by anaconda\n")
+ f.write("#\n")
+ f.write("# Note that you do not have to rerun grub "
+ "after making changes to this file\n")
+
bootDev = fsset.getEntryByMountPoint("/boot")
grubPath = "/grub"
cfPath = "/"
@@ -457,6 +462,7 @@ class x86BootloaderInfo(bootloaderInfo):
f.write('\n')
f.close()
+ os.chmod(instRoot + "/boot/grub/grub.conf", self.perms)
if not os.access(instRoot + "/boot/grub/device.map", os.R_OK):
f = open(instRoot + "/boot/grub/device.map", "w+")