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

Use doas for OpenBSD #4733

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Use doas for OpenBSD #4733

wants to merge 4 commits into from

Conversation

oridb
Copy link

@oridb oridb commented Jul 14, 2019

It's the new hotness, we no longer have sudo shipped by default on openbsd. The doas command first appeared in openbsd 5.8.

Fixes #4732 .

Changes proposed in this pull request:

  • Add a probe for doas, use it as a fallback to sudo. Default to sudo in rvm.sh on OpenBSD.

@oridb oridb force-pushed the master branch 2 times, most recently from d5587e4 to 36635ff Compare July 14, 2019 04:21
Copy link
Member

@pkuczynski pkuczynski left a comment

Choose a reason for hiding this comment

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

Some changes needed

scripts/functions/support Show resolved Hide resolved
binscripts/rvm-installer Outdated Show resolved Hide resolved
@pkuczynski pkuczynski changed the title Use doas for openbsd. Use doas for OpenBSD Jul 15, 2019
@oridb
Copy link
Author

oridb commented Aug 10, 2019

ping?

(The test failures look odd to me, and I'm not sure how this change could have broken them.)

@pkuczynski
Copy link
Member

@oridb sorry for delay. I made one more comment, as I don't think you solved the previous one the way I suggested? Do you need help with this?

@morgant
Copy link

morgant commented Dec 1, 2019

@oridb Any update on changing the implementation as @pkuczynski suggested in his initial code comment? I'd love to test rvm on OpenBSD.

@schrodyn
Copy link

I'm hitting this issue but with doas on FreeBSD. Can you include FreeBSD + doas support too, 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.

OpenBSD attemtps to use sudo instead of doas, and fails
4 participants