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

Ensure they've hit disk.
This commit is contained in:
Colin Walters 2014-04-08 18:40:33 -04:00
parent 646c8be8dc
commit b423d9e9cf
1 changed files with 6 additions and 0 deletions

View File

@ -964,6 +964,12 @@ install_deployment_kernel (OstreeSysroot *sysroot,
cancellable, error))
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;
out:
return ret;