-
Notifications
You must be signed in to change notification settings - Fork 104
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
Is it possible to use this plugin without sudo #48
Comments
yea write to bin_fmt requires root; if there a shell command we can use to do this? this way we can prefix it with sudo. |
Actually I've started looking into a new approach, using Regarding
|
i'm open to add systemd-nspawn as an option (even one that's enabled by default, and assuming it works for everyone deprecate the old way). as for registration, it doesn't need to be done every run, i mainly do that for simplicity for the user; we can add a test if the required value is there, and only write it if its not there |
Thanks for the feedback. I might work on this if I have some spare time :) |
I was looking into whether it would be possible to use this plugin without
sudo packer build
. My biggest problem with the current approach is that the output files andpacker_cache
directories end up being owned by root.I was looking into whether it would be possible to prefix commands within the plugin with
sudo
so thatsudo
was used only when necessary but this doesn't work foros.OpenFile
inpkg/builder/step_register_bin_fmt.go
. Maybe there is a better way though?The text was updated successfully, but these errors were encountered: