From bd800943d98e3161e92d07efa654e5a0e951f514 Mon Sep 17 00:00:00 2001 From: Justin Cormack Date: Mon, 14 Nov 2016 22:00:12 +0000 Subject: [PATCH] Fix /run symlink issues - run bootmisc before sysklogd so symlinks from /var/run to /run are created - recreate symlinks that bootmisc created when we remount /var until this gets moved earlier Signed-off-by: Justin Cormack --- alpine/etc/init.d/sysklogd | 2 +- alpine/packages/automount/etc/init.d/automount | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/alpine/etc/init.d/sysklogd b/alpine/etc/init.d/sysklogd index 1a1d5fcfa..0945fa49b 100755 --- a/alpine/etc/init.d/sysklogd +++ b/alpine/etc/init.d/sysklogd @@ -6,7 +6,7 @@ extra_started_commands="reload" depend() { - need clock hostname localmount vsudd + need clock hostname localmount vsudd bootmisc before net provide logger } diff --git a/alpine/packages/automount/etc/init.d/automount b/alpine/packages/automount/etc/init.d/automount index 43f1f7cb6..10278d76b 100755 --- a/alpine/packages/automount/etc/init.d/automount +++ b/alpine/packages/automount/etc/init.d/automount @@ -52,6 +52,10 @@ start() [ -d /var/var/lib/boot2docker/ ] && mount --bind /var/var /var fi + # can remove when we run before bootmisc + [ -L /var/run ] || ln -s /run /var/run + [ -L /var/run ] || ln -s /run/lock /var/lock + mount | grep -q "${DEV}. on /var type" eend $? "Failed to mount block device"