mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-23 03:26:31 +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/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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue