mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-29 05:27:41 +00:00
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 <justin.cormack@docker.com>
This commit is contained in:
parent
01e1d43fe7
commit
bd800943d9
@ -6,7 +6,7 @@
|
||||
extra_started_commands="reload"
|
||||
|
||||
depend() {
|
||||
need clock hostname localmount vsudd
|
||||
need clock hostname localmount vsudd bootmisc
|
||||
before net
|
||||
provide logger
|
||||
}
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user