In my ubuntu vagrant I've got a recipe that does
apt-get update then
apt-get upgrade -y. I've got a final recipe that reboots the machine if a restart is required. Since I'm using NFS to share my local directory, rebooting the VM makes the NFS share stop working. So then I need to issue a
vagrant reload from my host.
Is it possible to issue something similar to
vagrant reload from within the guest, or have some other way of reloading the vagrant NFS config once the VM has been rebooted? I don't want to have to write a script that runs on the host - I'm looking for a command I can drop into my
reboot chef recipe so it'll reboot and reload the vagrant config.