Always mount swap not just when created

Swap was not being mounted always.

See https://github.com/docker/for-win/issues/403

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack 2017-01-20 15:01:40 +00:00
parent 7d0b569a29
commit 77689348d0

View File

@ -96,8 +96,8 @@ do_swapfile()
dd if=/dev/zero of=$SWAP bs=1k count=1048576
chmod 600 $SWAP
mkswap $SWAP
swapon $SWAP
fi
[ -f "$SWAP" ] && swapon $SWAP
}
start()