54c03ce
From fb257ff2fbb66a732a1369445b8c580a4ec61339 Mon Sep 17 00:00:00 2001
54c03ce
From: Peter Robinson <pbrobinson@gmail.com>
54c03ce
Date: Wed, 27 Feb 2019 12:30:07 +0000
54c03ce
Subject: [PATCH 07/13] Default to using 2Gb on all architectures
54c03ce
54c03ce
The original 1Gb should be enough but RAM is cheap and sometimes things
54c03ce
like the initrd unexpectently bloat so 2Gb gives us room to move.
54c03ce
54c03ce
Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
54c03ce
---
54c03ce
 oz/Guest.py | 7 +------
54c03ce
 1 file changed, 1 insertion(+), 6 deletions(-)
54c03ce
54c03ce
diff --git a/oz/Guest.py b/oz/Guest.py
54c03ce
index dfb63e4..3bb144e 100644
54c03ce
--- a/oz/Guest.py
54c03ce
+++ b/oz/Guest.py
54c03ce
@@ -178,13 +178,8 @@ class Guest(object):
54c03ce
                                                      1)
54c03ce
         # the memory in the configuration file is specified in megabytes, but
54c03ce
         # libvirt expects kilobytes, so multiply by 1024
54c03ce
-        if self.tdl.arch in ["ppc64", "ppc64le"]:
54c03ce
-            # ppc64 needs at least 2Gb RAM
54c03ce
-            self.install_memory = int(oz.ozutil.config_get_key(config, 'libvirt',
54c03ce
+        self.install_memory = int(oz.ozutil.config_get_key(config, 'libvirt',
54c03ce
                                                                'memory', 2048)) * 1024
54c03ce
-        else:
54c03ce
-            self.install_memory = int(oz.ozutil.config_get_key(config, 'libvirt',
54c03ce
-                                                               'memory', 1024)) * 1024
54c03ce
         self.image_type = oz.ozutil.config_get_key(config, 'libvirt',
54c03ce
                                                    'image_type', 'raw')
54c03ce
 
54c03ce
-- 
54c03ce
2.20.1
54c03ce