VVV
VVV copied to clipboard
Prevent VM creation if using VirtualBox + root/sudo
In theory this prevents the creation of the VM by exiting early if the user is root. It needs further testing however
Checks
- [ ] I've updated the changelog.
- [ ] I've tested this PR
- [x] This PR is for the
developbranch not thestablebranch. - [ ] This PR is complete and ready for review.
Thanks for opening this pull request! Make sure CHANGELOG.md gets updated with this change, additionally any docs that need updated can be found at https://github.com/Varying-Vagrant-Vagrants/varyingvagrantvagrants.org
I cannot test it on linux because I did't gave sudo permission to vagrant at all.
sudo vagrant up in a fresh VVV checkout of this branch should be all that's needed, or running the vagrant command as root. This PR doesn't influence the guest VM
I cannot test it because my machine block sudo on other commands.
I cannot test it because my machine block sudo on other commands.
I'm really curious about this... what environment actively blocks sudo by default? And if it's not a default, why would you intentionally put yourself in that position?