core: preserve qrexec-timeout during VM clone

Fixes QubesOS/qubes-issues#1501
This commit is contained in:
Marek Marczykowski-Górecki 2015-12-23 19:07:18 +01:00
parent c8d26c253e
commit d539bd2be1
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -1271,9 +1271,10 @@ class QubesVm(object):
hook(self, verbose, source_template=source_template) hook(self, verbose, source_template=source_template)
def get_clone_attrs(self): def get_clone_attrs(self):
attrs = ['kernel', 'uses_default_kernel', 'netvm', 'uses_default_netvm', \ attrs = ['kernel', 'uses_default_kernel', 'netvm', 'uses_default_netvm',
'memory', 'maxmem', 'kernelopts', 'uses_default_kernelopts', 'services', 'vcpus', \ 'memory', 'maxmem', 'kernelopts', 'uses_default_kernelopts',
'_mac', 'pcidevs', 'include_in_backups', '_label', 'default_user'] 'services', 'vcpus', '_mac', 'pcidevs', 'include_in_backups',
'_label', 'default_user', 'qrexec_timeout']
# fire hooks # fire hooks
for hook in self.hooks_get_clone_attrs: for hook in self.hooks_get_clone_attrs: