-
Notifications
You must be signed in to change notification settings - Fork 72
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
Dependency/Discussion: remove usage of sudo
in scripts/makefiles
#182
Comments
Such as which ones? I don't see any current PRs adding sudo.
Do you have any sources for that? sudo is a pretty standard tool available on every Linux distro, whereas doas is an OpenBSD tool.
Installing dependencies, accessing certain sysfs values, and LPC/SPI access all require root access to work.
That would require every script to be run as root instead of only the commands that need root access, and probably breaks |
I didn't mention it was open PRs :) - https://github.com/system76/ec/pull/164/files
Faults in sudo keeps popping up, as it is a
Yes, that was not what was stated :) you removed
Then you have left one option left I suppose, ie. There is a total of 26 occurences of sudo in the current files. This might be wishful thinking to remove/replace, but would be quite nice. |
I am simply dismissing the option of being able to remove the use of sudo entirely.
Yes. This is the only way it would make sense. But, again, doas is an OpenBSD tool. (And I don't expect OpenBSD devs are the ones maintaining the Linux fork.) How many people use it? What value is there to maintain compatibility with it? |
Not sure how many have switched, since I guess it is not that easy on most distros. However, this is only a suggestion and a nice-to-have thing, and shouldn't be a priority :) |
I suppose in |
After reading some PRs, I can see more and more
sudo
commands getting introduced into the code.This can be a issue, seeing as more and more people are switching away from
sudo
and using such things asdoas
instead.I propose removing
sudo
from the code, and making it either configurable with a variable, or telling the user to please run X script as the root user.If I find the time, I would like to take a stab at this :)
Any comments on this are appreciated!
The text was updated successfully, but these errors were encountered: