deploy: fsync() kernel/initramfs and bootloader config parent directories

Ensure they've hit disk.
This commit is contained in:
Colin Walters committed 2014-04-11 18:43:27 -04:00
1 parent 646c8be8dc
commit b423d9e9cf
1 file changed
+6
+6
View File
@@ -964,6 +964,12 @@ install_deployment_kernel (OstreeSysroot *sysroot,
cancellable, error)) cancellable, error))
goto out; goto out;
/* Now sync out parent directories */
if (!ot_util_fsync_directory (bootcsumdir, cancellable, error))
goto out;
if (!ot_util_fsync_directory (bootconfpath_parent, cancellable, error))
goto out;
ret = TRUE; ret = TRUE;
out: out:
return ret; return ret;