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

There should be an option to run provisioning scripts after mounts are done #287

Open
jandubois opened this issue Oct 4, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@jandubois
Copy link
Member

Right now provisioning scripts cannot use files from the host filesystem because the mounts are created by the hostagent on request of the guestagent. There should be a mechanism to run additional provisioning scripts once the instance is deemed to be fully initialized.

@jandubois jandubois added the enhancement New feature or request label Oct 4, 2021
@AkihiroSuda
Copy link
Member

Provisioning scripts should be executed always after mounts are setup

@jandubois
Copy link
Member Author

Provisioning scripts should be executed always after mounts are setup

#720 (comment) shows an example where a provisioning script needs to run before mounts are working: to add support for a distribution not directly supported by lima. You can't install sshfs if your mounts rely on sshfs already being installed.

@goonzoid
Copy link

Is this issue still accurate? I seem to have no problem accessing files from the host via mounts in my provisioning scripts, using v0.16.0.

Wondering whether this was intentionally fixed, or if I'm just getting lucky with timing somehow.

@jandubois
Copy link
Member Author

Is this issue still accurate?

I believe this issue is accurate when you are using mountType: reverse-sshfs. If you are using e.g. 9p then the mounts are already in place before the provisioning scripts run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants