Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

Bootlocal.sh error with shared folder vagrant #3

Closed
tlambe opened this issue Oct 15, 2014 · 1 comment
Closed

Bootlocal.sh error with shared folder vagrant #3

tlambe opened this issue Oct 15, 2014 · 1 comment

Comments

@tlambe
Copy link

tlambe commented Oct 15, 2014

Hi,
I'm using bootlocal.sh to launch some job at b2d start.
One of this job start a docker container with option -v /vagrant:/vagrant but when I'm doing Vagrant up , the container don't start and I've the following error :

vagrant
This only happens when I'm doing vagrant halt following by vagrant up . No problem with vagrant reload .

I think the problem is due to the fact that bootlocal.sh script is run before Vagrant has time to mount shared folders.

For now, I'm using a while loop to correct the problem :

  while true; do
        if [[ -e /vagrant ]]; then
           break
        fi
        sleep 1
  done

Do you have any idea to correct the problem with a 'more clean ' solution ?

Thanks,

@dduportal
Copy link
Owner

Thomas, the new version re-used what you have done : when /vagrant hase been mounted, the new custom bootlocal.sh will execute a bootlocal.sh fscript if found into /vagrant.

I thinks we don't have any "clever" solution today :(

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants