]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* util/grub-mkimage.c (main): Explicitely flush and sync the output
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 9 May 2011 14:27:09 +0000 (16:27 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 9 May 2011 14:27:09 +0000 (16:27 +0200)
before closing to ensure that it will be readable by grub-setup.

ChangeLog
util/grub-mkimage.c

index 540e171cc2175cd2a23e12d49150566d2bb97bb8..bec788b3cd32b400edfe66e26d549c7e9d692ffc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-05-09  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * util/grub-mkimage.c (main): Explicitely flush and sync the output
+       before closing to ensure that it will be readable by grub-setup.
+
 2011-05-05  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
index 2ba351596f00feeb6f85307176183e38427f5c8d..b71fb04202be70499ec7cf110337b72a0a0ad376 100644 (file)
@@ -1609,6 +1609,8 @@ main (int argc, char *argv[])
                  argv + optind, memdisk, config,
                  image_target, note, comp);
 
+  fflush (fp);
+  fsync (fileno (fp));
   fclose (fp);
 
   if (dir)