mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-08-03 16:00:36 +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"
|
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