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/env
if ! test -f /swap
if ! test -f /swapfile
then
echo "Making swap..."
dd if=/dev/zero of=/swap bs=1M count=${SWAP_SIZE}
mkswap /swap
dd if=/dev/zero of=/swapfile bs=1M count=${SWAP_SIZE}
mkswap /swapfile
fi
swapon /swap
swapon /swapfile