Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init.d/bootmisc: create /run/user #659

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stacyharper
Copy link

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.

Fixes: #658

if [ ! -d /run ]; then
extra="/var/run $extra"
fi
else
extra=/var/run
extra=/var/run /var/run/user
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing quoting

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch

@@ -168,11 +168,14 @@ start()
if [ "$RC_UNAME" = Linux ]; then
# Satisfy Linux FHS
extra=/var/lib/misc
if [ ! -d /var/run/user ]; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should stick to /run/user, not /var/run

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay

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.
@stacyharper stacyharper changed the title init.d/bootmisc: create /var/run/user init.d/bootmisc: create /run/user Oct 29, 2023
@stacyharper
Copy link
Author

stacyharper commented Dec 14, 2023

Can I have some news about this? Its been some months and I still would like for this directory to exists thanks to openrc.

@stacyharper
Copy link
Author

This is an humble bump. Someone could give a review please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create /run/user
2 participants