diff --git a/partition.sh b/partition.sh index 9afa63e..23378bb 100755 --- a/partition.sh +++ b/partition.sh @@ -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 \