Changed maximum SWAP size from 32GiB to 16GiB
This commit is contained in:
@@ -46,8 +46,8 @@ if [[ "${1}" == '--disk' ]]; then
|
||||
if [[ "${enableSwap}" == "yes" ]]; then
|
||||
swapSize="$(((($(vmstat -sS M | grep 'total memory' | sed 's/ M total memory//') / 1024) + 1) * 2))"
|
||||
|
||||
if [[ "${swapSize#}" -gt '32' ]]; then
|
||||
swapSize='32'
|
||||
if [[ "${swapSize#}" -gt '16' ]]; then
|
||||
swapSize='16'
|
||||
fi
|
||||
|
||||
sgdisk \
|
||||
|
||||
Reference in New Issue
Block a user