mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 18:11:35 +00:00
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:
parent
7d0b569a29
commit
77689348d0
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user