mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-27 04:28:20 +00:00
add additional directories on newly created /var
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
bbe778f0d2
commit
300ded1ed9
@ -68,6 +68,10 @@ start()
|
|||||||
# can remove when we run before bootmisc
|
# can remove when we run before bootmisc
|
||||||
[ -L /var/run ] || ln -s /run /var/run
|
[ -L /var/run ] || ln -s /run /var/run
|
||||||
[ -L /var/run ] || ln -s /run/lock /var/lock
|
[ -L /var/run ] || ln -s /run/lock /var/lock
|
||||||
|
[ -d /var/log ] || mkdir -m 755 /var/log
|
||||||
|
[ -d /var/empty ] || mkdir -m 755 /var/empty
|
||||||
|
[ -d /var/spool ] || mkdir -m 755 /var/spool
|
||||||
|
[ -d /var/tmp ] || mkdir -m 1777 /var/tmp
|
||||||
|
|
||||||
mount | grep -q "${DEV}. on /var type"
|
mount | grep -q "${DEV}. on /var type"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user