[rhel7-branch][PATCHv2] Use blivet's getFreeSpace for limitting automatic swap size

Brian C. Lane bcl at redhat.com
Tue Aug 5 23:57:05 UTC 2014


On Fri, Aug 01, 2014 at 11:34:02AM +0200, Vratislav Podzimek wrote:
> We should limit swap size to 10 % of available free space not overall disk
> space. Blivet's getFreeSpace can help us a lot with this.
> 
> Resolves: rhbz#1053462
> Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
> ---
>  pyanaconda/kickstart.py             | 31 +++++++++++++++++++++----------
>  pyanaconda/ui/gui/spokes/custom.py  |  3 +++
>  pyanaconda/ui/gui/spokes/storage.py | 12 +++---------
>  3 files changed, 27 insertions(+), 19 deletions(-)

Looks ok to me.

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)


More information about the anaconda-patches mailing list