kusnier/vagrant-persistent-storage

/tmp/ cannot execute.

csuka opened this issue · 5 comments

csuka commented

I can't execute on /tmp/, thus this whole package fails.
Can you change the location of where the script is being launched from, such as /home/vagrant/

Can you explain what I have exactly to do to reproduce the problem? Some information about your host system would also be helpful. Thank you.

csuka commented

Using CentOS 7. I've got a system which is mounted as ro on /tmp.
I'd like to use this plugin, but since the system I"m using cannot execute on /tmp/ this plugin doesn't work.

You default your script to /tmp/disk_operations_.sh.
But the .sh cannot execute since my /tmp/ is mounted as read-only. My company has done this due to security reasons....

So perhaps, you can create a variable of where the disk_operations scripts are set. Instead of the default /tmp/ folder

Can you check if the following command will provide a writeable temporary dir?
When this works i could update the script to determinate the temporary folder dynamically.

dirname $(mktemp -u)

I have updated the script now the temp dir is calculated through mktemp.
Tomorrow I will make some tests and provide a new version.

I have release v0.0.45 which uses now mktemp to calculate the temporary directory.
Now it should work.
Thank you.