Fix setup for BSD
Mounting folders works in vagrant only with /bin/sh, not with /bin/tcsh or /bin/csh. And only via NFS or RSync, but not with vfs. But NFS requires a private network.
This commit is contained in:
parent
65556eba1b
commit
ead489914f
|
@ -31,7 +31,7 @@ Vagrant.configure("2") do |config|
|
|||
|
||||
# Create a private network, which allows host-only access to the machine
|
||||
# using a specific IP.
|
||||
# config.vm.network "private_network", ip: "192.168.33.10"
|
||||
config.vm.network "private_network", ip: "192.168.33.10"
|
||||
|
||||
# Create a public network, which generally matched to bridged network.
|
||||
# Bridged networks make the machine appear as another physical device on
|
||||
|
@ -43,13 +43,14 @@ Vagrant.configure("2") do |config|
|
|||
|
||||
# There is no BASH for root on BSD. We need to set another shell.
|
||||
# See https://www.freebsd.org/doc/en/articles/linux-users/shells.html
|
||||
config.ssh.shell = "/bin/csh"
|
||||
config.ssh.shell = "/bin/sh"
|
||||
|
||||
# Share an additional folder to the guest VM. The first argument is
|
||||
# the path on the host to the actual folder. The second argument is
|
||||
# the path on the guest to mount the folder. And the optional third
|
||||
# argument is a set of non-required options.
|
||||
config.vm.synced_folder "..", "/vagrant_data"
|
||||
config.vm.synced_folder "..", "/vagrant_data", type: "nfs"
|
||||
config.vm.synced_folder ".", "/vagrant", type: "nfs"
|
||||
|
||||
# Provider-specific configuration so you can fine-tune various
|
||||
# backing providers for Vagrant. These expose provider-specific options.
|
||||
|
|
Loading…
Reference in New Issue