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

Add doas support to is_root_or_sudo_prefix #6643

Merged
merged 1 commit into from
May 21, 2024

Conversation

JohnTheCoolingFan
Copy link
Contributor

Description

doas is not compatible with sudo flags. The codebase was checked for sudo-specific uses of this function, but none were found, all cases were in the form of sudo <command>. Replacing it with doas <command> yields the same result.

Was extracted from #6576 and can't be merged until it's reverted in #6642

How Has This Been Tested?

Used to build images on my machine with extensions that use is_root_or_sudo_prefix

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings

@github-actions github-actions bot added the size/small PR with less then 50 lines label May 20, 2024
lib/functions/host/host-utils.sh Outdated Show resolved Hide resolved
@JohnTheCoolingFan JohnTheCoolingFan marked this pull request as ready for review May 20, 2024 15:06
@JohnTheCoolingFan JohnTheCoolingFan requested a review from a team as a code owner May 20, 2024 15:06
doas is not compatible with sudo flags. The codebase was checked for
sudo-specific uses of this function, but none were found, all cases were
in the form of `sudo <command>`. Replacing it with `doas <command>`
yields the same result.
Copy link
Collaborator

@viraniac viraniac left a comment

Choose a reason for hiding this comment

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

LGTM

@igorpecovnik igorpecovnik added Ready to merge Reviewed, tested and ready for merge 05 Milestone: Second quarter release labels May 21, 2024
@igorpecovnik igorpecovnik merged commit cf7923c into armbian:main May 21, 2024
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
05 Milestone: Second quarter release Ready to merge Reviewed, tested and ready for merge size/small PR with less then 50 lines
Development

Successfully merging this pull request may close these issues.

4 participants