mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-23 11:36:32 +01:00
Merge branch 'swap-support' into bare-metal-full
This commit is contained in:
commit
42e86cda7a
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue