Package: dphys-swapfile
Version: 20100506-5
Dear Maintainer,
When I use an external usb to create a swap file, with the actual configuration
I cannot go over 50% of the whole size of the drive.
Please correct the code at this part
"
HALF_AVAIL_MB=$(echo "${AVAIL_KB} 2048 / p" | dc)
if [ "${CONF_SWAPSIZE}" -gt "${HALF_AVAIL_MB}" ] ; then
echo -n ", restricting to ${CONF_MAXDISK_PCT}% of remaining disk size:
${HALF_AVA$
CONF_SWAPSIZE="${HALF_AVAIL_MB}"
fi
"
So I can use the variable CONF_MAXDISK_PCT correctly and go over 50% of the
whole space.
I’m using "Linux Raspbian 5.10.17-v7+ #1421 SMP Thu May 27 13:59:01 BST 2021
armv7l GNU/Linux"
—
Tommaso Carraro