From 971d406857b588f035de29645b6e6d2e3d4c2f4d Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Fri, 21 Oct 2011 07:44:26 -0600 Subject: [PATCH] Use /etc/nodename for hostname; preferable for this situation --- lib/vagrant/systems/solaris.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/vagrant/systems/solaris.rb b/lib/vagrant/systems/solaris.rb index 4795499fd..89f81bdb3 100644 --- a/lib/vagrant/systems/solaris.rb +++ b/lib/vagrant/systems/solaris.rb @@ -46,13 +46,12 @@ module Vagrant end def change_host_name(name) - device = "#{vm.env.config.solaris.device}0" su_cmd = vm.env.config.solaris.suexec_cmd vm.ssh.execute do |ssh| # Only do this if the hostname is not already set if !ssh.test?("#{su_cmd} hostname | grep '#{name}'") - ssh.exec!("#{su_cmd} sh -c \"echo '#{name}' > /etc/hostname.#{device}\"") - ssh.exec!("#{su_cmd} sudo uname -S #{name}") + ssh.exec!("#{su_cmd} sh -c \"echo '#{name}' > /etc/nodename\"") + ssh.exec!("#{su_cmd} uname -S #{name}") end end end