mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-19 22:50:35 +03:00
deploy: Do a full system sync after writing bootloader config
This is just something I noticed on inspection; we should catch any changes to /boot in the sync(), even though theoretically gio should have done fdatasync().
This commit is contained in:
parent
ae68b8380f
commit
d03b8bbad9
@ -1096,12 +1096,6 @@ ostree_sysroot_write_deployments (OstreeSysroot *self,
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (!full_system_sync (cancellable, error))
|
||||
{
|
||||
g_prefix_error (error, "Full sync: ");
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (bootloader && !_ostree_bootloader_write_config (bootloader, new_bootversion,
|
||||
cancellable, error))
|
||||
{
|
||||
@ -1109,6 +1103,12 @@ ostree_sysroot_write_deployments (OstreeSysroot *self,
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (!full_system_sync (cancellable, error))
|
||||
{
|
||||
g_prefix_error (error, "Full sync: ");
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (!swap_bootloader (self, self->bootversion, new_bootversion,
|
||||
cancellable, error))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user