[gnome-boxes] Don't take post-installation steps for saved domains



commit 665a70622c9d1f8f1da3b468d58dab827312df45
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Thu Feb 16 02:02:16 2012 +0200

    Don't take post-installation steps for saved domains
    
    Saved domains are stopped as well so them being stoppd doesn't mean that
    first boot is done and its time to perform post install setup.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=670174

 src/vm-creator.vala |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/vm-creator.vala b/src/vm-creator.vala
index cb28060..5b243af 100644
--- a/src/vm-creator.vala
+++ b/src/vm-creator.vala
@@ -54,6 +54,11 @@ private class Boxes.VMCreator {
     }
 
     private void on_domain_stopped (Domain domain) {
+        if (domain.get_saved ())
+            // This means the domain was just saved and thefore this is not yet the time to take any post-install
+            // steps for this domain.
+            return;
+
         var volume = get_storage_volume (connection, domain);
 
         if (guest_installed_os (volume)) {



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