diff options
author | Paulo Alcantara <pcacjr@zytor.com> | 2013-01-07 06:14:47 -0200 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2013-01-10 10:51:16 +0000 |
commit | 39add3bc254a585aeba8dba7c32e4aa462221e24 (patch) | |
tree | c0d1a0d75330694c72795bb95808dadfa88d1518 | |
parent | 48865d2af1eca051716829ef0393d7a12a1a86d0 (diff) | |
download | syslinux-39add3bc254a585aeba8dba7c32e4aa462221e24.tar.gz syslinux-39add3bc254a585aeba8dba7c32e4aa462221e24.tar.xz syslinux-39add3bc254a585aeba8dba7c32e4aa462221e24.zip |
extlinux: Make sure ldlinux.sys file is installed
Due to delayed allocation feature on XFS filesystems, a write is not
guaranteed to flushed out to the underlying file system after crash or
something else - so we need to make sure that ldlinux.sys is installed
correctly in the mounted filesystem.
Signed-off-by: Paulo Alcantara <pcacjr@zytor.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
-rw-r--r-- | extlinux/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/extlinux/main.c b/extlinux/main.c index 0204caa1..fa54152e 100644 --- a/extlinux/main.c +++ b/extlinux/main.c @@ -687,6 +687,8 @@ static int xfs_install_file(const char *path, int devfd, struct stat *rst) } close(dirfd); + + sync(); close(fd); return 0; |