diff options
Diffstat (limited to 'bootloader.py')
-rw-r--r-- | bootloader.py | 8 |
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 |