[ostree] deploy: Do a full system sync after writing bootloader config



commit d03b8bbad9f40024b994c03960758446c614f7a6
Author: Colin Walters <walters verbum org>
Date:   Thu Sep 19 22:26:03 2013 -0400

    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().

 src/libostree/ostree-sysroot-deploy.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/libostree/ostree-sysroot-deploy.c b/src/libostree/ostree-sysroot-deploy.c
index 4639ead..8a6fd4e 100644
--- a/src/libostree/ostree-sysroot-deploy.c
+++ b/src/libostree/ostree-sysroot-deploy.c
@@ -1096,16 +1096,16 @@ ostree_sysroot_write_deployments (OstreeSysroot     *self,
           goto out;
         }
 
-      if (!full_system_sync (cancellable, error))
+      if (bootloader && !_ostree_bootloader_write_config (bootloader, new_bootversion,
+                                                          cancellable, error))
         {
-          g_prefix_error (error, "Full sync: ");
+          g_prefix_error (error, "Bootloader write config: ");
           goto out;
         }
 
-      if (bootloader && !_ostree_bootloader_write_config (bootloader, new_bootversion,
-                                                          cancellable, error))
+      if (!full_system_sync (cancellable, error))
         {
-          g_prefix_error (error, "Bootloader write config: ");
+          g_prefix_error (error, "Full sync: ");
           goto out;
         }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]