FreeBSD and OpenBSD guest detection
This commit is contained in:
parent
d76f964470
commit
c4422d7198
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue