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

format-udf does not work without sudo #36

Closed
tloimer opened this issue Jul 26, 2017 · 7 comments
Closed

format-udf does not work without sudo #36

tloimer opened this issue Jul 26, 2017 · 7 comments

Comments

@tloimer
Copy link

tloimer commented Jul 26, 2017

The format-udf script makes the assumptions that (1) it is run as unprivileged user and (ii) sudo is available. I wished that format-udf also works without sudo, run as root.

@JElchison
Copy link
Owner

Hi @tloimer, thanks for reporting.

Are you willing to test my fix for this issue, using your environment? The fix exists in the develop branch, currently at 1ca76af. Travis result here.

The specific commit that implements your fix is 89835bc. Please review.

Please report back. Thanks!

@tloimer
Copy link
Author

tloimer commented Jul 26, 2017 via email

@JElchison
Copy link
Owner

Thanks, @tloimer. I'm on board with your patch. It will be useful in cases where sudo is not available.

However, I want to ensure that I understand your scenario before merging in your patch. Concerning the following error message:

[-] Dependencies unmet.  Please verify that at least one of the following are installed, executable, and in the PATH:  blockdev, ioreg

The script is behaving as if blockdev is not in your unprivileged user's PATH, but it is in the root PATH. Is that what's happening?

Thanks!

@tloimer
Copy link
Author

tloimer commented Jul 26, 2017 via email

@JElchison
Copy link
Owner

Thanks, @tloimer.

It turns out that your recommended patch bypasses the core issue, but did not fix the core issue. The core issue is that the calls to which also need $(SUDO) if the usage of the tool uses $(SUDO). Can you please review b6aee7d, as well as 6690130?

Also, are you willing to re-test using your environment? The fix exists in the develop branch, currently at b6aee7d. Travis result here.

Thanks!

@tloimer
Copy link
Author

tloimer commented Jul 26, 2017 via email

@JElchison
Copy link
Owner

Thanks again for reporting, and thanks for your help testing! I'll generate a new release shortly...

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

No branches or pull requests

2 participants