mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-28 16:58:03 +01:00
swapfile size increase to 10GB (#4114)
This commit is contained in:
parent
16b815e58d
commit
901bfb2a3f
1 changed files with 2 additions and 2 deletions
|
@ -1577,9 +1577,9 @@ if [ "$1" = "swap" ]; then
|
|||
sed -i "s/^CONF_SWAPFILE=.*/CONF_SWAPFILE=\/mnt\/hdd\/swapfile/g" /etc/dphys-swapfile
|
||||
fi
|
||||
sed -i "s/^CONF_SWAPSIZE=/#CONF_SWAPSIZE=/g" /etc/dphys-swapfile
|
||||
sed -i "s/^#CONF_MAXSWAP=.*/CONF_MAXSWAP=3072/g" /etc/dphys-swapfile
|
||||
sed -i "s/^#CONF_MAXSWAP=.*/CONF_MAXSWAP=10240/g" /etc/dphys-swapfile
|
||||
>&2 echo "# Creating SWAP file .."
|
||||
dd if=/dev/zero of=$externalSwapPath count=3072 bs=1MiB 1>/dev/null
|
||||
dd if=/dev/zero of=$externalSwapPath count=10240 bs=1MiB 1>/dev/null
|
||||
chmod 0600 $externalSwapPath 1>/dev/null
|
||||
>&2 echo "# Activating new SWAP"
|
||||
mkswap $externalSwapPath
|
||||
|
|
Loading…
Add table
Reference in a new issue