dom0/core: allow custom kernel for non-updateable VMs
This commit is contained in:
parent
4b9cc1e405
commit
500baf3a60
@ -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'):
|
||||
|
Loading…
Reference in New Issue
Block a user