diff --git a/CHANGELOG.md b/CHANGELOG.md index 6819b220d..39c15988a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ `localhost` is not always loopback. - New `shell` provisioner which simply uploads and executes a script as root on the VM. + - Gentoo host only networking no longer fails if alrady setup. [GH-286] ## 0.7.0 (January 19, 2011) diff --git a/lib/vagrant/systems/gentoo.rb b/lib/vagrant/systems/gentoo.rb index 5c005e5b8..d557d70d5 100644 --- a/lib/vagrant/systems/gentoo.rb +++ b/lib/vagrant/systems/gentoo.rb @@ -16,7 +16,7 @@ module Vagrant vm.ssh.upload!(StringIO.new(entry), "/tmp/vagrant-network-entry") vm.ssh.execute do |ssh| - ssh.exec!("sudo ln -s /etc/init.d/net.lo /etc/init.d/net.eth#{net_options[:adapter]}") + ssh.exec!("sudo ln -fs /etc/init.d/net.lo /etc/init.d/net.eth#{net_options[:adapter]}") ssh.exec!("sudo /etc/init.d/net.eth#{net_options[:adapter]} stop 2> /dev/null") ssh.exec!("sudo su -c 'cat /tmp/vagrant-network-entry >> /etc/conf.d/net'") ssh.exec!("sudo /etc/init.d/net.eth#{net_options[:adapter]} start")