diff options
author | Jeremy Katz <katzj@redhat.com> | 2003-05-20 15:26:00 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2003-05-20 15:26:00 +0000 |
commit | 1f3bf130e3705ed4d77af08cf51c12128ab5424d (patch) | |
tree | 9f5d2f3b64e7aa17b261e911cb1fff0547451e7d /bootloader.py | |
parent | 445f36acfd30cd71b89e8ed7385b74cb9da0f2dc (diff) | |
download | anaconda-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.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 |