dom0/core: allow custom kernel for non-updateable VMs

This commit is contained in:
Marek Marczykowski 2012-07-28 01:39:59 +02:00
parent 4b9cc1e405
commit 500baf3a60

View File

@ -920,7 +920,7 @@ class QubesVm(object):
args['volatiledev'] = "'script:file:{dir}/volatile.img,xvdc,w',".format(dir=self.dir_path)
if hasattr(self, 'kernel'):
modulesmode='r'
if self.updateable and self.kernel is None:
if self.kernel is None:
modulesmode='w'
args['otherdevs'] = "'script:file:{dir}/modules.img,xvdd,{mode}',".format(dir=self.kernels_dir, mode=modulesmode)
if hasattr(self, 'kernelopts'):