Merge branch 'swap-support' into bare-metal-full

This commit is contained in:
Gábor Stefanik 2024-01-08 05:21:57 +01:00
commit 42e86cda7a

View file

@ -10,10 +10,10 @@
. /steps/bootstrap.cfg . /steps/bootstrap.cfg
. /steps/env . /steps/env
if ! test -f /swap if ! test -f /swapfile
then then
echo "Making swap..." echo "Making swap..."
dd if=/dev/zero of=/swap bs=1M count=${SWAP_SIZE} dd if=/dev/zero of=/swapfile bs=1M count=${SWAP_SIZE}
mkswap /swap mkswap /swapfile
fi fi
swapon /swap swapon /swapfile