summaryrefslogtreecommitdiffstats
path: root/bootloader.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-05-20 15:26:00 +0000
committerJeremy Katz <katzj@redhat.com>2003-05-20 15:26:00 +0000
commit1f3bf130e3705ed4d77af08cf51c12128ab5424d (patch)
tree9f5d2f3b64e7aa17b261e911cb1fff0547451e7d /bootloader.py
parent445f36acfd30cd71b89e8ed7385b74cb9da0f2dc (diff)
downloadanaconda-1f3bf130e3705ed4d77af08cf51c12128ab5424d.tar.gz
anaconda-1f3bf130e3705ed4d77af08cf51c12128ab5424d.tar.xz
anaconda-1f3bf130e3705ed4d77af08cf51c12128ab5424d.zip
merge from taroon branch to HEAD. mostly the package stuff, but also
msw's ctrl-alt-del thing and some arch fixups
Diffstat (limited to 'bootloader.py')
-rw-r--r--bootloader.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/bootloader.py b/bootloader.py
index 88610ffcf..e4630ea9e 100644
--- a/bootloader.py
+++ b/bootloader.py
@@ -71,6 +71,11 @@ def bootloaderSetupChoices(dispatch, bl, fsset, diskSet, dir):
def writeBootloader(intf, instRoot, fsset, bl, langs, comps):
+ def dosync():
+ isys.sync()
+ isys.sync()
+ isys.sync()
+
justConfigFile = not flags.setupFilesystems
if bl.defaultDevice == -1:
@@ -117,13 +122,13 @@ def writeBootloader(intf, instRoot, fsset, bl, langs, comps):
kernelList.append((kernelLabel, kernelLongLabel, version))
plainLabelUsed = 1
-
# FIXME: blah, exec-shield breaks grub. turn it off for now
if os.access("/proc/sys/kernel/exec-shield", os.W_OK):
f = open("/proc/sys/kernel/exec-shield", "w")
f.write("0")
f.close()
+ dosync()
try:
bl.write(instRoot, fsset, bl, langs, kernelList, otherList, defaultDev,
justConfigFile, intf)
@@ -135,6 +140,7 @@ def writeBootloader(intf, instRoot, fsset, bl, langs, comps):
_("No kernel packages were installed on your "
"system. Your boot loader configuration "
"will not be changed."))
+ dosync()
# note that this function no longer actually creates an initrd.
# the kernel's %post does this now