Skip to content

Commit

Permalink
Added a freebsd netinstaller
Browse files Browse the repository at this point in the history
Renamed the template definitions
  • Loading branch information
jedi4ever committed Apr 27, 2011
1 parent 5d0a55b commit 2859314
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ PATH
net-ssh (~> 2.1.0) net-ssh (~> 2.1.0)
popen4 (~> 0.1.2) popen4 (~> 0.1.2)
progressbar progressbar
rspec rspec (~> 2.5.0)
thor (~> 0.14.6) thor (~> 0.14.6)
vagrant (~> 0.7.0) vagrant (~> 0.7.0)


Expand Down
2 changes: 1 addition & 1 deletion lib/veewee/session.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def self.build(boxname,options)
Veewee::Ssh.when_ssh_login_works("localhost",ssh_options) do Veewee::Ssh.when_ssh_login_works("localhost",ssh_options) do
#Transfer version of Virtualbox to $HOME/.vbox_version #Transfer version of Virtualbox to $HOME/.vbox_version
versionfile=Tempfile.open("vbox.version") versionfile=Tempfile.open("vbox.version")
versionfile.puts "#{VirtualBox::Global.global.lib.virtualbox.version}.split('_')[0)" versionfile.puts "#{VirtualBox::Global.global.lib.virtualbox.version.split('_')[0]}"
versionfile.rewind versionfile.rewind
begin begin
Veewee::Ssh.transfer_file("localhost",versionfile.path,".vbox_version", ssh_options) Veewee::Ssh.transfer_file("localhost",versionfile.path,".vbox_version", ssh_options)
Expand Down
4 changes: 2 additions & 2 deletions lib/veewee/ssh.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -110,15 +110,15 @@ def self.execute(host,command, options = { :progress => "on"} )
ch.on_data do |c, data| ch.on_data do |c, data|
@stdout+=data @stdout+=data


puts data print data


end end


# "on_extended_data" is called when the process writes something to stderr # "on_extended_data" is called when the process writes something to stderr
ch.on_extended_data do |c, type, data| ch.on_extended_data do |c, type, data|
@stderr+=data @stderr+=data


puts data print data


end end


Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ commitDiskPart
disk0-part=UFS+S 1024 / disk0-part=UFS+S 1024 /
disk0-part=SWAP 1534 none disk0-part=SWAP 1534 none
disk0-part=UFS+S 2048 /var disk0-part=UFS+S 2048 /var
disk0-part=UFS+S 5629 /usr disk0-part=UFS+S 5529 /usr
commitDiskLabel commitDiskLabel


# List our components to install # List our components to install
Expand All @@ -54,4 +54,4 @@ runCommand=sed -i -e 's@auth.*include.*system@@' /etc/pam.d/su


# making the clock run correctly # making the clock run correctly
# http://forums.virtualbox.org/viewtopic.php?f=11&t=12210&start=0 # http://forums.virtualbox.org/viewtopic.php?f=11&t=12210&start=0
runCommand=echo 'kern.hz=100' > /boot/loader.conf # runCommand=echo 'kern.hz=100' > /boot/loader.conf

0 comments on commit 2859314

Please sign in to comment.