From 53acd20548bf472529746d69fd6a0a26bc328464 Mon Sep 17 00:00:00 2001 From: Jose Luis Duran Date: Thu, 19 Apr 2018 14:04:27 -0300 Subject: [PATCH] Fix network configuration on FreeBSD hosts There was a missing space within `sed` parameters that caused the `rc.conf` file to be wrongly created as `rc.conf-e`. --- plugins/guests/freebsd/cap/configure_networks.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/guests/freebsd/cap/configure_networks.rb b/plugins/guests/freebsd/cap/configure_networks.rb index f496b942a..36b11d1ed 100644 --- a/plugins/guests/freebsd/cap/configure_networks.rb +++ b/plugins/guests/freebsd/cap/configure_networks.rb @@ -16,7 +16,7 @@ module VagrantPlugins interfaces = [] # Remove any previous network additions to the configuration file. - commands << "sed -i'' -e '/^#VAGRANT-BEGIN/,/^#VAGRANT-END/ d' /etc/rc.conf" + commands << "sed -i '' -e '/^#VAGRANT-BEGIN/,/^#VAGRANT-END/ d' /etc/rc.conf" comm.sudo("ifconfig -a | grep -o '^[0-9a-z]*' | grep -v '^lo'", options) do |_, stdout| interfaces = stdout.split("\n")