Skip to content

Commit bc83824

Browse files
committed
init.d/bootmisc: create /var/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.
1 parent cf9286d commit bc83824

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

init.d/bootmisc.in

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,14 @@ start()
168168
if [ "$RC_UNAME" = Linux ]; then
169169
# Satisfy Linux FHS
170170
extra=/var/lib/misc
171+
if [ ! -d /run/user ]; then
172+
extra="/run/user $extra"
173+
fi
171174
if [ ! -d /run ]; then
172175
extra="/var/run $extra"
173176
fi
174177
else
175-
extra=/var/run
178+
extra="/var/run /var/run/user"
176179
fi
177180
for x in /var/log /tmp $extra; do
178181
if ! [ -d $x ]; then

0 commit comments

Comments
 (0)