[elbe-devel] [PATCH 5/6] init libvirt.xml.mako: specify memsize from xml node initvm/mem
Torben Hohn
torben.hohn at linutronix.de
Mon May 7 15:51:14 CEST 2018
ram allocated to initvm was hardcoded.
Obey value in xml file including default value.
Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
elbepack/init/libvirt.xml.mako | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/elbepack/init/libvirt.xml.mako b/elbepack/init/libvirt.xml.mako
index 47dbbc89..f8503fb0 100644
--- a/elbepack/init/libvirt.xml.mako
+++ b/elbepack/init/libvirt.xml.mako
@@ -19,7 +19,7 @@ uid = uuid.uuid4()
name = cfg['initvm_domain']
cpus = multiprocessing.cpu_count()
-memory = 1048576
+memory = int(prj.text('mem', defaults=defs, key='mem'))
imagetype = prj.text('img', defaults=defs, key='img')
img = os.path.join(opt.directory, 'buildenv.img')
--
2.11.0
More information about the elbe-devel
mailing list