From ac917ef1d82341608b4750ada6bdb43a7cc98282 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Thu, 1 Sep 2011 14:55:17 +0200 Subject: [PATCH] dom0: Set modules.img device R/W for StandaloneVM (#333) --- dom0/qvm-core/qubes.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dom0/qvm-core/qubes.py b/dom0/qvm-core/qubes.py index a1c62a8e..761e6199 100755 --- a/dom0/qvm-core/qubes.py +++ b/dom0/qvm-core/qubes.py @@ -687,7 +687,10 @@ class QubesVm(object): args['rootdev'] = self.get_rootdev(source_template=source_template) args['privatedev'] = "'script:file:{dir}/private.img,xvdb,w',".format(dir=self.dir_path) args['volatiledev'] = "'script:file:{dir}/volatile.img,xvdc,w',".format(dir=self.dir_path) - args['otherdevs'] = "'script:file:{dir}/modules.img,xvdd,r',".format(dir=self.kernels_dir) + modulesmode='r' + if self.is_updateable() and self.kernel is None: + modulesmode='w' + args['otherdevs'] = "'script:file:{dir}/modules.img,xvdd,{mode}',".format(dir=self.kernels_dir, mode=modulesmode) args['kernelopts'] = self.kernelopts return args