* util/grub-mkimage.c (main): Explicitely flush and sync the output

before closing to ensure that it will be readable by grub-setup.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2011-05-09 16:27:09 +02:00
parent 072b5d315a
commit ea75312f31
2 changed files with 7 additions and 0 deletions

View file

@ -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.

View 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)