From b85dbd248bf58b61aa0ae164cf39dde7a2282b40 Mon Sep 17 00:00:00 2001 From: Willow Barraco Date: Mon, 9 Oct 2023 10:58:13 +0200 Subject: [PATCH] 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. --- init.d/bootmisc.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/init.d/bootmisc.in b/init.d/bootmisc.in index 233dfc55b..488baa895 100644 --- a/init.d/bootmisc.in +++ b/init.d/bootmisc.in @@ -168,11 +168,14 @@ start() if [ "$RC_UNAME" = Linux ]; then # Satisfy Linux FHS extra=/var/lib/misc + if [ ! -d /var/run/user ]; then + extra="/var/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