core: Show the right kernel version for DispVMs

Fixes QubesOS/qubes-issues#948
This commit is contained in:
Marek Marczykowski-Górecki 2015-10-03 01:50:15 +02:00
parent 4f04c62f36
commit 958b59cc00
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -97,6 +97,11 @@ class QubesDisposableVm(QubesVm):
disp_template = kwargs['disp_template']
kwargs['template'] = disp_template.template
kwargs['dir_path'] = disp_template.dir_path
kwargs['kernel'] = disp_template.kernel
kwargs['uses_default_kernel'] = disp_template.uses_default_kernel
kwargs['kernelopts'] = disp_template.kernelopts
kwargs['uses_default_kernelopts'] = \
disp_template.uses_default_kernelopts
super(QubesDisposableVm, self).__init__(**kwargs)
assert self.template is not None, "Missing template for DisposableVM!"