From 77689348d09ef87ee32257695243a3ffc3d4d6da Mon Sep 17 00:00:00 2001 From: Justin Cormack Date: Fri, 20 Jan 2017 15:01:40 +0000 Subject: [PATCH] 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 --- alpine/packages/automount/etc/init.d/automount | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alpine/packages/automount/etc/init.d/automount b/alpine/packages/automount/etc/init.d/automount index 83ae51ddb..a6aa8b677 100755 --- a/alpine/packages/automount/etc/init.d/automount +++ b/alpine/packages/automount/etc/init.d/automount @@ -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()