From c41585e2f59a20076689c2851305d3293bdd1db6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Fri, 10 Mar 2017 23:54:57 +0100 Subject: [PATCH] Initialize dom0 label It is required property. Additionally, define icon_path to None, otherwise it tries to access dom0.dir_path, which isn't set. --- qubes/app.py | 3 ++- qubes/vm/adminvm.py | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/qubes/app.py b/qubes/app.py index ae9380f5..a9e23104 100644 --- a/qubes/app.py +++ b/qubes/app.py @@ -872,7 +872,8 @@ class Qubes(qubes.PropertyHolder): self.pools[name] = self._get_pool(**config) self.domains.add( - qubes.vm.adminvm.AdminVM(self, None, qid=0, name='dom0')) + qubes.vm.adminvm.AdminVM(self, None, qid=0, name='dom0', + label='black')) @classmethod def create_empty_store(cls, *args, **kwargs): diff --git a/qubes/vm/adminvm.py b/qubes/vm/adminvm.py index 13671ff4..a571a3de 100644 --- a/qubes/vm/adminvm.py +++ b/qubes/vm/adminvm.py @@ -143,6 +143,9 @@ class AdminVM(qubes.vm.qubesvm.QubesVM): ''' raise qubes.exc.QubesVMError(self, 'Cannot suspend Dom0 fake domain!') + @property + def icon_path(self): + return None # def __init__(self, **kwargs): # super(QubesAdminVm, self).__init__(qid=0, name="dom0", netid=0,