From d58c1cf4d793efb4f726c0b2430d18819c58c2f7 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 26 Jan 2011 14:31:59 -0800 Subject: [PATCH] Gentoo host only network no longer fails if already enabled. [closes GH-286] --- CHANGELOG.md | 1 + lib/vagrant/systems/gentoo.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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")