[PATCH 4/5] Set minswap suggestion on s390x to 1 (#466289).

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
---
 iutil.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/iutil.py b/iutil.py
index a568ff7..d6e6e2f 100644
--- a/iutil.py
+++ b/iutil.py
@@ -454,6 +454,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)
 
-- 
1.6.6.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux