mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-22 02:21:34 +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
|
dd if=/dev/zero of=$SWAP bs=1k count=1048576
|
||||||
chmod 600 $SWAP
|
chmod 600 $SWAP
|
||||||
mkswap $SWAP
|
mkswap $SWAP
|
||||||
swapon $SWAP
|
|
||||||
fi
|
fi
|
||||||
|
[ -f "$SWAP" ] && swapon $SWAP
|
||||||
}
|
}
|
||||||
|
|
||||||
start()
|
start()
|
||||||
|
Loading…
Reference in New Issue
Block a user