From 8222324146b948f6556d138c5bc76c9e20568fe7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sat, 16 Jul 2016 21:49:16 +0200 Subject: [PATCH] backup: restore 'services' property Fixes QubesOS/qubes-issues#2106 --- core/backup.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/backup.py b/core/backup.py index 390457b3..8e05c165 100644 --- a/core/backup.py +++ b/core/backup.py @@ -2236,6 +2236,13 @@ def backup_restore_do(restore_info, error_callback("ERROR: {0}".format(err)) error_callback("*** Some VM property will not be restored") + try: + for service, value in vm.services.items(): + new_vm.services[service] = value + except Exception as err: + error_callback("ERROR: {0}".format(err)) + error_callback("*** Some VM property will not be restored") + try: new_vm.appmenus_create(verbose=callable(print_callback)) except Exception as err: