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:
Willow Barraco 2023-10-09 10:58:13 +02:00
parent 554ccab718
commit 09fc02df36
No known key found for this signature in database
GPG Key ID: EABA44759877E02A

View File

@ -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