core/hvm: remove xenstore code

QubesDB does not require setting up directory (and permissions), so just
remove the function.
This commit is contained in:
Marek Marczykowski-Górecki 2015-02-07 01:12:29 +01:00
parent 89f8f219bf
commit 4e26588bb3

View File

@ -434,26 +434,6 @@ class QubesHVm(QubesVm):
self.run_service("qubes.SetGuiMode", input=service_input)
def create_xenstore_entries(self, xid = None):
if dry_run:
return
super(QubesHVm, self).create_xenstore_entries(xid)
if xid is None:
xid = self.xid
domain_path = xs.get_domain_path(xid)
# Prepare xenstore directory for tools advertise
xs.write('',
"{0}/qubes-tools".format(domain_path),
'')
# Allow VM writes there
xs.set_permissions('', '{0}/qubes-tools'.format(domain_path),
[{ 'dom': xid }])
def _cleanup_zombie_domains(self):
super(QubesHVm, self)._cleanup_zombie_domains()
if not self.is_running():