diff options
author | Jeremy Katz <katzj@redhat.com> | 2003-05-07 21:01:53 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2003-05-07 21:01:53 +0000 |
commit | 04c17a5829352dd3af98a1477074d7191b71c489 (patch) | |
tree | f688343d1276520e251b410eacdd12e4bbf428aa | |
parent | a4ee8b832ce74972655cd0f55b2a5635595ea860 (diff) | |
download | anaconda-04c17a5829352dd3af98a1477074d7191b71c489.tar.gz anaconda-04c17a5829352dd3af98a1477074d7191b71c489.tar.xz anaconda-04c17a5829352dd3af98a1477074d7191b71c489.zip |
make sure things get synced to disk to try to avoid any weirdness
-rw-r--r-- | bootloader.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bootloader.py b/bootloader.py index b9eea2b8e..9ad6f675f 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,7 +122,7 @@ def writeBootloader(intf, instRoot, fsset, bl, langs, comps): kernelList.append((kernelLabel, kernelLongLabel, version)) plainLabelUsed = 1 - + dosync() try: bl.write(instRoot, fsset, bl, langs, kernelList, otherList, defaultDev, justConfigFile, intf) @@ -129,6 +134,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 |