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

Don't ask for password on sudo for OPi5 images #21

Merged
merged 1 commit into from
Jul 22, 2024

Conversation

stephenjust
Copy link
Contributor

The photonvision dev tooling expects the 'pi' user to not ask for password on sudo when running ./gradlew deploy -PArchOverride=linuxarm64, since this is the default on RPI OS.

We should do the same here so that gradle behaves on Orange Pi 5 devices as well.

The photonvision dev tooling expects the 'pi' user to not ask for password on sudo when running `./gradlew deploy -PArchOverride=linuxarm64`, since this is the default on RPI OS.

We should do the same here so that gradle behaves on Orange Pi 5 devices as well.
@@ -8,6 +8,9 @@ else
usermod -a -G sudo pi
mkdir /home/pi
chown -R pi /home/pi

echo 'pi ALL=(ALL) NOPASSWD: ALL' | tee -a /etc/sudoers.d/010_pi-nopasswd >/dev/null
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a benefit to piping to tee -a over using >> to append to this file?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Either way is fine. I went with this approach here because it was what I validated before rebuilding the image (swapping tee for sudo tee), and the rest of the script didn't set a strong precedent one way or the other.

Copy link
Contributor

@crschardt crschardt left a comment

Choose a reason for hiding this comment

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

looks good to me

@crschardt crschardt merged commit c5a1e83 into PhotonVision:master Jul 22, 2024
7 checks passed
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.

2 participants