From 4ca311edbdb3fa308e4a94cb368c08d306ad090b Mon Sep 17 00:00:00 2001 From: Pablo Carranza Velez Date: Fri, 18 Aug 2017 13:43:47 -0700 Subject: [PATCH] Ensure /var/run/resin exists before trying to mount it as tmpfs Fixes issues on systems where mount files if the target doesn't exist (seems to happen on boards that run docker on overlayfs). Change-Type: patch Signed-off-by: Pablo Carranza Velez --- entry.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/entry.sh b/entry.sh index 6d15b814..3cac07a5 100755 --- a/entry.sh +++ b/entry.sh @@ -9,6 +9,7 @@ set -o errexit [ -d /mnt/root/tmp/resin-supervisor ] || mkdir -p /mnt/root/tmp/resin-supervisor +mkdir -p /var/run/resin mount -t tmpfs -o size=1m tmpfs /var/run/resin # If DOCKER_ROOT isn't set then default it