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.
pull/22/head
Dominik Ritter 8 years ago
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 # Create a private network, which allows host-only access to the machine
# using a specific IP. # 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. # Create a public network, which generally matched to bridged network.
# Bridged networks make the machine appear as another physical device on # 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. # 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 # 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 # 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 host to the actual folder. The second argument is
# the path on the guest to mount the folder. And the optional third # the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options. # 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 # Provider-specific configuration so you can fine-tune various
# backing providers for Vagrant. These expose provider-specific options. # backing providers for Vagrant. These expose provider-specific options.

Loading…
Cancel
Save