Changed maximum SWAP size from 32GiB to 16GiB

This commit is contained in:
2026-01-02 08:45:01 -05:00
parent b57734ddbb
commit 3e233de780

View File

@@ -46,8 +46,8 @@ if [[ "${1}" == '--disk' ]]; then
if [[ "${enableSwap}" == "yes" ]]; then if [[ "${enableSwap}" == "yes" ]]; then
swapSize="$(((($(vmstat -sS M | grep 'total memory' | sed 's/ M total memory//') / 1024) + 1) * 2))" swapSize="$(((($(vmstat -sS M | grep 'total memory' | sed 's/ M total memory//') / 1024) + 1) * 2))"
if [[ "${swapSize#}" -gt '32' ]]; then if [[ "${swapSize#}" -gt '16' ]]; then
swapSize='32' swapSize='16'
fi fi
sgdisk \ sgdisk \