Merge pull request #727 from justincormack/var-run-link

Fix /run symlink issues
This commit is contained in:
Justin Cormack 2016-11-14 22:13:17 +00:00 committed by GitHub
commit 6cb4f046c4
2 changed files with 5 additions and 1 deletions

View File

@ -6,7 +6,7 @@
extra_started_commands="reload"
depend() {
need clock hostname localmount vsudd
need clock hostname localmount vsudd bootmisc
before net
provide logger
}

View File

@ -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"