lima
lima copied to clipboard
There should be an option to run provisioning scripts after mounts are done
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.
Provisioning scripts should be executed always after mounts are setup
Provisioning scripts should be executed always after mounts are setup
https://github.com/lima-vm/lima/pull/720#issuecomment-1069004001 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.
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.
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.