This commit is contained in:
teldra 2021-08-18 09:18:01 +02:00
parent 0cb5ee4767
commit ac208273f0
2 changed files with 4 additions and 3 deletions

View File

@ -113,9 +113,9 @@ if [[ ! "${cfg[fde_key_store]}" == "none" ]]; then
cfg+=( [diskpw]="${output}" )
fi
hibernate=0
if check yesno "Do you want to hibernate?" "y"; then
hibernate=1
setconf "add" "hibernate" "1"
fi
ramsize="$(($(getconf _PHYS_PAGES) * $(getconf PAGE_SIZE) / (1024 * 1024)))"
@ -132,9 +132,11 @@ elif [[ "${ramsize}" -gt "8" ]] && [[ "${ramsize}" -lt "15" ]]; then
test -z "${hibernate}" || swapsize="$(awk "BEGIN { printf(\"%.0f\n\", ${ramsize}*1.5); }")"
elif [[ "${ramsize}" -ge "15" ]]; then
test -z "${hibernate}" && swapsize="4"
test -z "${hibernate}" || echo "hibernate not recommended, turning off" && read && hibernate="" && swapsize="4"
test -z "${hibernate}" || echo "hibernate not recommended, turning off" && read && hibernate="0" && swapsize="4"
fi
setconf "add" "hibernate" "${hibernate}"
setconf "add" "bootsize" "4"
echo Configure rootfssize

View File

@ -51,7 +51,6 @@ fi
if [[ "${cfg[rootfssize]}" == "rest" ]]; then
target_partition_tmp="${dodiskid}-part${index}"
index=$(( index + 1 ))
echo "create rootfs"
if test -d /sys/firmware/efi; then
echo "n