mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-29 05:27:41 +00:00
Merge pull request #727 from justincormack/var-run-link
Fix /run symlink issues
This commit is contained in:
commit
6cb4f046c4
@ -6,7 +6,7 @@
|
|||||||
extra_started_commands="reload"
|
extra_started_commands="reload"
|
||||||
|
|
||||||
depend() {
|
depend() {
|
||||||
need clock hostname localmount vsudd
|
need clock hostname localmount vsudd bootmisc
|
||||||
before net
|
before net
|
||||||
provide logger
|
provide logger
|
||||||
}
|
}
|
||||||
|
@ -52,6 +52,10 @@ start()
|
|||||||
[ -d /var/var/lib/boot2docker/ ] && mount --bind /var/var /var
|
[ -d /var/var/lib/boot2docker/ ] && mount --bind /var/var /var
|
||||||
fi
|
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"
|
mount | grep -q "${DEV}. on /var type"
|
||||||
|
|
||||||
eend $? "Failed to mount block device"
|
eend $? "Failed to mount block device"
|
||||||
|
Loading…
Reference in New Issue
Block a user