[rhel6-branch][PATCH] Do not limit swap size to 10 % of disk space for hibernation
Vratislav Podzimek
vpodzime at redhat.com
Wed Oct 9 13:10:10 UTC 2013
If --hibernation is used, there should be enough space on the disks to create
large enough swap for hibernation.
Resolves: rhbz#1003844
Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
---
iutil.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/iutil.py b/iutil.py
index eaf2136..f837f7a 100644
--- a/iutil.py
+++ b/iutil.py
@@ -489,7 +489,7 @@ def swapSuggestion(quiet=0, hibernation=False, disk_space=None):
else:
log.info("Ignoring --hibernation option on systems with 64 GB of RAM or more")
- if disk_space is not None:
+ if disk_space is not None and not hibernation:
max_swap = int(disk_space * MAX_SWAP_DISK_RATIO)
if swap > max_swap:
log.info("Suggested swap size (%(swap)d M) exceeds %(percent)d %% of "
--
1.7.11.7
More information about the anaconda-patches
mailing list