admin: Use linkcopy_sync_data() for initramfs instead of rename()
It's possible (likely even) that /tmp is on a separate filesystem; in that case, a raw rename() is going to fail. Saw this on the ostree.gnome.org builder.
This commit is contained in:
parent
a01783dafd
commit
5565735bcb
|
|
@ -175,10 +175,11 @@ generate_initramfs (OtAdminUpdateKernel *self,
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!gs_file_rename (initramfs_tmp_file, ret_initramfs_path,
|
if (!gs_file_linkcopy_sync_data (initramfs_tmp_file, ret_initramfs_path,
|
||||||
cancellable, error))
|
G_FILE_COPY_OVERWRITE,
|
||||||
|
cancellable, error))
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
if (!gs_shutil_rm_rf (tmpdir, cancellable, error))
|
if (!gs_shutil_rm_rf (tmpdir, cancellable, error))
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue