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