Skip to content

Commit

Permalink
init.d/bootmisc: create /run/user
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
stacyharper committed Oct 29, 2023
1 parent 554ccab commit 09fc02d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion init.d/bootmisc.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 09fc02d

Please sign in to comment.