-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
shell provisioner on noexec /tmp #6993
Comments
Thank you for opening an issue. Unfortunately we cannot just assume bash. Fortunately, the recommended work around is listed in the docs: https://www.vagrantup.com/docs/provisioning/shell.html
The recommended pattern is to upload the script using a file provisioner and then manually execute it with your desired interpreter. Thanks! 😄 |
Hi @sethvargo, Regards Raskil |
In case anyone else come across this, you need to use the upload_path option to point the script somewhere else other than /tmp. I use something like this:
|
The
config.vm.provision
script is copied to /tmp, if that is executed on a noexec mounted filesystem I get this error:A suggested solution: treat the shell script as an input for bash:
Source file: vagrant/plugins/provisioners/shell/provisioner.rb
The text was updated successfully, but these errors were encountered: