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

Fix root shell (Fixes #51) #53

Closed
wants to merge 1 commit into from
Closed

Conversation

nzbr
Copy link
Member

@nzbr nzbr commented Feb 1, 2022

When a root shell is started from within the systemd namespace, syschdemd.sh will try to enter the namespace again which causes the command to fail. This PR adds a new environment variable INSIDE_NAMESPACE that is used to detect this and start the requested command directly

Copy link

@G3zz G3zz left a comment

Choose a reason for hiding this comment

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

This is great and fixed my problem - thanks!

shayne added a commit to shayne/nixos-config that referenced this pull request Feb 5, 2022
@nzbr
Copy link
Member Author

nzbr commented Mar 24, 2022

The fix was a part of #56

@nzbr nzbr closed this Mar 24, 2022
@nzbr nzbr deleted the sudo-fix branch March 24, 2022 19:09
@nzbr nzbr added the bug Something isn't working label Mar 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants