mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-26 20:18:52 +00:00
fix typo making swap file
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
8e23494bed
commit
3f2eb7630e
@ -45,7 +45,7 @@ do_swapfile()
|
|||||||
SWAP=/var/spool/swap
|
SWAP=/var/spool/swap
|
||||||
if [ "$(mobyplatform)" = "mac" ] || [ "$(mobyplatform)" = "windows" ] && [ ! -f $SWAP ]
|
if [ "$(mobyplatform)" = "mac" ] || [ "$(mobyplatform)" = "windows" ] && [ ! -f $SWAP ]
|
||||||
then
|
then
|
||||||
mkdir -p "$(basnename $SWAP)"
|
mkdir -p "$(basename $SWAP)"
|
||||||
dd if=/dev/zero of=$SWAP bs=1k count=4090876
|
dd if=/dev/zero of=$SWAP bs=1k count=4090876
|
||||||
chmod 600 $SWAP
|
chmod 600 $SWAP
|
||||||
mkswap $SWAP
|
mkswap $SWAP
|
||||||
|
Loading…
Reference in New Issue
Block a user