FreeBSD and OpenBSD guest detection

This commit is contained in:
Mitchell Hashimoto 2013-04-10 14:15:02 -07:00
parent d76f964470
commit c4422d7198
2 changed files with 2 additions and 15 deletions

View File

@ -7,20 +7,8 @@ module VagrantPlugins
# Contributed by Kenneth Vestergaard <kvs@binarysolutions.dk> # Contributed by Kenneth Vestergaard <kvs@binarysolutions.dk>
class Guest < Vagrant.plugin("2", :guest) class Guest < Vagrant.plugin("2", :guest)
def detect?(machine) def detect?(machine)
# TODO: FreeBSD detection machine.communicate.test("uname -s | grep 'FreeBSD'")
false
end end
# TODO: vboxsf is currently unsupported in FreeBSD, if you are able to
# help out with this project, please contact vbox@FreeBSD.org
#
# See: http://wiki.freebsd.org/VirtualBox/ToDo
# def mount_shared_folder(ssh, name, guestpath)
# ssh.exec!("sudo mkdir -p #{guestpath}")
# # Using a custom mount method here; could use improvement.
# ssh.exec!("sudo mount -t vboxfs v-root #{guestpath}")
# ssh.exec!("sudo chown #{vm.config.ssh.username} #{guestpath}")
# end
end end
end end
end end

View File

@ -4,8 +4,7 @@ module VagrantPlugins
module GuestOpenBSD module GuestOpenBSD
class Guest < Vagrant.plugin("2", :guest) class Guest < Vagrant.plugin("2", :guest)
def detect?(machine) def detect?(machine)
# TODO: OpenBSD detection machine.communicate.test("uname -s | grep 'OpenBSD'")
false
end end
end end
end end