swapon creates a table using 1 B for each page in the swap. Therefore when a huge swap (e.g. 500 GB) is created, swapon fails with ENOMEM, because it is using vmalloc that allocates a continuous memory. Thus we need to limit the maximum size of swap partitions. And since we don't know the strict limit, let's use 128 GB that seems to work and should be enough for everybody. (ported 35679a70eab52b3b040a61fce9d0e43dbb977c98 from rhel6-branch) --- pyanaconda/storage/formats/swap.py | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/pyanaconda/storage/formats/swap.py b/pyanaconda/storage/formats/swap.py index aa169dc..a3319d3 100644 --- a/pyanaconda/storage/formats/swap.py +++ b/pyanaconda/storage/formats/swap.py @@ -45,6 +45,9 @@ class SwapSpace(DeviceFormat): _supported = True # is supported _linuxNative = True # for clearpart + #see rhbz#744129 for details + _maxSize = 128 * 1024 + def __init__(self, *args, **kwargs): """ Create a SwapSpace instance. -- 1.7.4.4 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list