summaryrefslogtreecommitdiffstats
path: root/iutil.py
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2010-04-14 06:32:22 -1000
committerDavid Cantrell <dcantrell@redhat.com>2010-04-14 11:09:05 -1000
commit0e9d6b58fe345c3a237c97cd8e0be47900dfc466 (patch)
treee9ecf2c0a18563415d494ec18e31ad452a7e58a8 /iutil.py
parentaaa751411c0a73a0e7131c98cfea3562db04c137 (diff)
downloadanaconda-0e9d6b58fe345c3a237c97cd8e0be47900dfc466.tar.gz
anaconda-0e9d6b58fe345c3a237c97cd8e0be47900dfc466.tar.xz
anaconda-0e9d6b58fe345c3a237c97cd8e0be47900dfc466.zip
Set minswap suggestion on s390x to 1 (#466289).
On s390x, set the minswap suggestion to 1 rather than 256, 1024, or the amount of memory in the system. On s390x, it's common for users to run with swap volumes smaller than the installed memory size, so align the anaconda recommendations with that.
Diffstat (limited to 'iutil.py')
-rw-r--r--iutil.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/iutil.py b/iutil.py
index e1cde5ec5..b2dabd197 100644
--- a/iutil.py
+++ b/iutil.py
@@ -445,6 +445,9 @@ def swapSuggestion(quiet=0):
minswap = mem
maxswap = 2*mem
+ if isS390():
+ minswap = 1
+
if not quiet:
log.info("Swap attempt of %sM to %sM", minswap, maxswap)