[rhel6-branch][PATCH] Do not limit swap size to 10 % of disk space for hibernation
Samantha N. Bueno
sbueno+anaconda at redhat.com
Wed Oct 9 13:09:04 UTC 2013
On Wed, Oct 09, 2013 at 03:10:10PM +0200, Vratislav Podzimek wrote:
> If --hibernation is used, there should be enough space on the disks to create
> large enough swap for hibernation.
Ack.
> 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
>
> _______________________________________________
> anaconda-patches mailing list
> anaconda-patches at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches
More information about the anaconda-patches
mailing list