mirror of
https://github.com/OpenRC/openrc.git
synced 2024-11-23 09:53:45 +08:00
init.d/bootmisc: create /run/user
This is needed for some pam services that create the user XDG_RUNTIME_DIR. By example dumb_runtime_dir require the RUNTIME_DIR_PARENT to be present first.
This commit is contained in:
parent
554ccab718
commit
09fc02df36
@ -168,11 +168,14 @@ start()
|
||||
if [ "$RC_UNAME" = Linux ]; then
|
||||
# Satisfy Linux FHS
|
||||
extra=/var/lib/misc
|
||||
if [ ! -d /run/user ]; then
|
||||
extra="/run/user $extra"
|
||||
fi
|
||||
if [ ! -d /run ]; then
|
||||
extra="/var/run $extra"
|
||||
fi
|
||||
else
|
||||
extra=/var/run
|
||||
extra="/var/run /var/run/user"
|
||||
fi
|
||||
for x in /var/log /tmp $extra; do
|
||||
if ! [ -d $x ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user