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 18c9af90c7
commit be389bddb9

View File

@ -905,7 +905,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'):